From 8f480e87d3e475334e0a207a9db709d263ec12a5 Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Tue, 29 Apr 2014 08:24:58 +0200 Subject: [PATCH] editbuttons SQL select is now exactly like getbuttons SQL command --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); -- 2.45.1