]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
I've added the ability to use multiple call to action() in one button's
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 7 May 2014 18:54:16 +0000 (20:54 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Wed, 7 May 2014 18:54:16 +0000 (20:54 +0200)
action

mainwindow.cpp

index 5e1f14bcc587b88e3c67e251f72bb678a66006f1..9c2872a0d34e975a88f8c0e89e0a74491772aa44 100644 (file)
@@ -159,6 +159,11 @@ void MainWindow::action(const QString &a){
             getButtons(way.takeLast());
         }
     }
+    else if(b[0]=="run"){
+        for(int b=0; b<a.count(QString("<q>")); b++){
+            action(a.split(QString("<q>"))[b]);
+        }
+    }
     else if(b[0]=="setfile"){
         conf->setValue(b[1], QFileDialog::getSaveFileName(this, QString("get file"), conf->value(b[1]).toString()));
     }