]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
few little tweak
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sun, 10 Dec 2017 14:22:40 +0000 (15:22 +0100)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sun, 10 Dec 2017 14:22:40 +0000 (15:22 +0100)
README.md
mainwindow.cpp

index d0ec00ee073a2bd41596cc7e293d7545f41274d7..05e87feb7ee479102802469c2abfcc3aa44056d0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ diary-mobile
 
 I need help to make the doc ! (all my soft capabilities is into action())
 The first time this soft is launched, it will ask an URL to download the buttons 
-(read ui.sql to understand what is expected).<br>
+(read ui.sql+ to understand what is expected).<br>
 To upload in real time, you've to set ftp server (with "hack"->"action", and "set userftp", 
 "set passftp", "set host" and "set filebuttons", but filebuttons can be whatever you choose) 
 to a ftp server where you've an account on with syntax :
index 274d6950025c8f50fb479045528a145d57a1ea24..f2a015e3e9cfc3055b46a701e8f4d4ad3392c839 100644 (file)
@@ -94,8 +94,9 @@ void MainWindow::start(){
     QString b=way.last();
     way.removeLast();
     qDebug()<<"a="<<a<<" b="<<b;
-    lastprint=b;
-    get(a, b);
+    //lastprint=b;
+    //get(a, b);
+    action(b);
 
 
 }
@@ -160,7 +161,7 @@ void MainWindow::quit(){
     qDebug()<<"quit() way.last()="<<way.last();
     q->finish();
     qq->finish();
-    if(way.size())conf->setValue(QString("start"), way);
+    //if(way.size())conf->setValue(QString("start"), way);
     //savButtons();
     db.commit();
     db.close();
@@ -368,6 +369,7 @@ void MainWindow::action(const QString &a){
     else if(b[0]==QString("but")){
         if(c!=""){
             download(c);
+            qDebug()<<"but : "<<c;
         }else{
             downloadData();
         };
@@ -939,7 +941,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event)
         };
     }else if(k==Qt::Key_Back){
         const QString a=conf->value(QString("menuback"), QString("")).toString();
-        if(a!="")accepted++;
+        if(a=="")accepted++;
         if(a!=lastprint){
             beforekey=label->text();
             action(a);
@@ -949,7 +951,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event)
     }else if(k==Qt::Key_VolumeDown){
         qDebug()<<"keyvolumdown";
         const QString a=conf->value(QString("volumdown"), QString("")).toString();
-        if(a!="")accepted++;
+        if(a=="")accepted++;
         if(a!=lastprint){
             beforekey=lastprint;
             action(a);
@@ -958,7 +960,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event)
         };
     }else if(k==Qt::Key_VolumeUp){
         const QString a=conf->value(QString("volumup"), QString("")).toString();
-        if(a!="")accepted++;
+        if(a=="")accepted++;
         if(a!=lastprint){
             beforekey=lastprint;
             action(a);