From: Norbert Moutarde Date: Tue, 29 Apr 2014 06:24:58 +0000 (+0200) Subject: editbuttons SQL select is now exactly like getbuttons SQL command X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=8f480e87d3e475334e0a207a9db709d263ec12a5;p=diary-mobile.git editbuttons SQL select is now exactly like getbuttons SQL command --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 50a00e2..e1a315b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -385,7 +385,8 @@ void MainWindow::chooseButtonDB(){ } void MainWindow::chooseButtonDB(const QString & a){ flush(); - qDebug()<<"exec()="<({"select id,label from ui where keyword like ? order by id;", a})); + QString b="%"+a+"%"; + qDebug()<<"exec()="<({"select id,label from ui where keyword like ? order by id;", b})); while (q->next()) { const QString action="edit "+q->value(0).toString(); addWidget(action, new CLabel(q->value(1).toString(), conf->value(QString("button")).toString()));