From c104dd9239d2f29d2aa1af1800ee5556e87de9b4 Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Wed, 7 May 2014 20:54:16 +0200 Subject: [PATCH] I've added the ability to use multiple call to action() in one button's action --- mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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())); } -- 2.45.1