From: Norbert Moutarde Date: Sun, 10 Dec 2017 14:22:40 +0000 (+0100) Subject: few little tweak X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=8b6511f776c801a2f1d175ca8cc6d1573d8a9637;p=diary-mobile.git few little tweak --- diff --git a/README.md b/README.md index d0ec00e..05e87fe 100644 --- 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).
+(read ui.sql+ to understand what is expected).
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 : diff --git a/mainwindow.cpp b/mainwindow.cpp index 274d695..f2a015e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -94,8 +94,9 @@ void MainWindow::start(){ QString b=way.last(); way.removeLast(); qDebug()<<"a="<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 : "<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);