From: Norbert Moutarde Date: Wed, 7 May 2014 18:54:16 +0000 (+0200) Subject: I've added the ability to use multiple call to action() in one button's X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=c104dd9239d2f29d2aa1af1800ee5556e87de9b4;p=diary-mobile.git I've added the ability to use multiple call to action() in one button's action --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 5e1f14b..9c2872a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -159,6 +159,11 @@ void MainWindow::action(const QString &a){ getButtons(way.takeLast()); } } + else if(b[0]=="run"){ + for(int b=0; b")); b++){ + action(a.split(QString(""))[b]); + } + } else if(b[0]=="setfile"){ conf->setValue(b[1], QFileDialog::getSaveFileName(this, QString("get file"), conf->value(b[1]).toString())); }