From: Norbert Moutarde Date: Sat, 1 Oct 2016 09:58:59 +0000 (+0200) Subject: multiple push on button don't write multiple action on way[] X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=b043beaad63729580014f0b377358399e968d75b;p=diary-mobile.git multiple push on button don't write multiple action on way[] --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 1e9511b..931b6b9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -804,6 +804,7 @@ void MainWindow::chooseDB(const QString & a,const QString & b){ flush(); QString c="%"+b+"%"; qDebug()<<"exec()="<({conf->value(QString("choose"+a)).toString(), c})); + while (q->next()) { const QString action="edit "+q->value(0).toString(); addWidget(action, new CLabel(q->value(1).toString(), *conf)); @@ -904,7 +905,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) beforekey=lastprint; action(a); }else{ - action(beforekey); + action(QString("-"+beforekey)); }; }else if(k==Qt::Key_Back){ const QString a=conf->value(QString("menuback"), QString("")).toString(); @@ -913,7 +914,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) beforekey=lastprint; action(a); }else{ - action(beforekey); + action(QString("-"+beforekey)); }; }else if(k==Qt::Key_VolumeDown){ qDebug()<<"keyvolumdown"; @@ -923,7 +924,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) beforekey=lastprint; action(a); }else{ - action(beforekey); + action(QString("-"+beforekey)); }; }else if(k==Qt::Key_VolumeUp){ const QString a=conf->value(QString("volumup"), QString("")).toString(); @@ -932,7 +933,7 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) beforekey=lastprint; action(a); }else{ - action(beforekey); + action(QString("-"+beforekey)); }; }; event->setAccepted(accepted); @@ -1282,10 +1283,6 @@ bool MainWindow::printItem(const QSqlQuery & a){ }; i++; }while(a.next()); - //grid->update(); - //scroll->updateGeometry(); - //screen->updateGeometry(); - qDebug()<<"end printItem : "<