]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
fix a little bug
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 22 Oct 2014 19:10:26 +0000 (21:10 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 22 Oct 2014 19:10:26 +0000 (21:10 +0200)
android/AndroidManifest.xml
mainwindow.cpp
mainwindow.h

index e4b8cda60d928ec0888478e88a571eeb54141c47..1cec6cea660271ad4f47afa5a2a2572e80d20e92 100644 (file)
@@ -45,4 +45,5 @@
          Remove the comment if you do not require these default features. -->
     <!-- %%INSERT_FEATURES -->
 
+<uses-permission android:name="android.permission.SET_DEBUG_APP"/>
 </manifest>
index df58f4e4591e191ba8ddc365a539d09c7a0b22c7..c7cb90ad76e53c66b8f71eeb5e29b81553ebfd87 100644 (file)
@@ -42,7 +42,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
 {
     qDebug()<<"begin of MainWindows";
     conf=new QSettings(QString("FwF"), QString("diary-mobile"), this);
-    orientation=0;
+    orienta=0;
     if(conf->allKeys().size()==0){
         qDebug()<<"first";
         firstrun();
@@ -75,7 +75,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
     };
     statusBar()->addPermanentWidget(label);
     menuBar()->setVisible(conf->value(QString("menu")).toBool());
-    //start();
+    start();
 }
 void MainWindow::start(){
     QString a=conf->value(QString("currenttype")).toString();
@@ -872,7 +872,7 @@ void MainWindow::resetRAW(){
     exec(QList<QString>({"delete from raw;"}));
 }
 void MainWindow::get(const QString & a){
-    const QString b=QInputDialog::getText(this, trUtf8("get", "title to ask keyword fot get"), trUtf8("Enter the keyword : ", "ask keyword to get buttons"));
+    const QString b=QInputDialog::getText(this, trUtf8("get", "title to ask keyword to get"), trUtf8("Enter the keyword : ", "ask keyword to get buttons"));
     get(a, b);
 }
 void MainWindow::insert(const QString & type, const QString & keyword, const QString & label, const QString & action){
@@ -968,12 +968,12 @@ void MainWindow::resizeEvent(QResizeEvent *event)
 {
     QSize size = event->size();
     bool isLandscape = size.width() > size.height();
-    if (isLandscape!=orientation){
+    if (isLandscape!=orienta){
         size.transpose();
         const int a=conf->value(QString("maxcolumn")).toInt();
         conf->setValue(QString("maxcolumn"), conf->value(QString("maxline")).toInt());
         conf->setValue(QString("maxline"), a);
-        orientation=isLandscape;
+        orienta=isLandscape;
         flush();
         if(lastprint[0]=='-')action(lastprint);
         else action('-'+lastprint);
index 74e31e993905e1684f5c99db74e6991b0c6edd60..9cbf5ea092401cdbe2d0ad19072b1bc66e8a99cd 100644 (file)
@@ -214,7 +214,7 @@ private:
     FileDownloader * m;
     QNetworkAccessManager *net;
     QNetworkReply * rep;
-    bool orientation;//0=portrait 1=paysage (size.width() > size.height())
+    bool orienta;//0=portrait 1=paysage (size.width() > size.height())
     unsigned short int deb;
     QVideoWidget * videoWidget;
 };