From: Norbert Moutarde Date: Wed, 18 Jun 2014 22:12:37 +0000 (+0200) Subject: mistake ... X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=9ce0e186dfa7c3af55d88cfcd0d48a24e0b91f39;p=diary-mobile.git mistake ... --- diff --git a/mainwindow.cpp b/mainwindow.cpp index ebacc37..37e4046 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -586,7 +586,7 @@ void MainWindow::get(const QString & d, const QString &b){ QString a=b;lastprint=b; if((b[0]!='-')&&(b[0]!='+'))way.append(a); else a.remove(0, 1); - qDebug()<<"getButtons("<value(0); while(q->next()){ //count++; - key+=" "+q->value(1).toString(); + key=q->value(1).toString()+" "+key; } - if(!key.contains(keyword))key+=keyword;// it is possible to have 2 buttons with same label and action ? I've sayd "no" - if(deb)QMessageBox::information(this, trUtf8("action", "box title to debug insert"), QString("insert : key="+key+" label="+label+" action="+action)); + if(!key.contains(keyword))key=key+" "+keyword;// it is possible to have 2 buttons with same label and action ? I've sayd "no" + if(deb)QMessageBox::information(this, trUtf8("action", "box title to debug insert"), trUtf8("insert : key="+key.toLocal8Bit()+" label="+label.toLocal8Bit()+" action="+action.toLocal8Bit(), "label to debug insert")); if(!id.isValid())exec(QList({conf->value(QString("add")+a).toString(), key, label, action})); else{exec(QList({conf->value(QString("update")+a).toString(), key, label, action, id.toString()})); };