]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
replace <q> by !q!
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 13 May 2014 07:11:58 +0000 (09:11 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Tue, 13 May 2014 07:11:58 +0000 (09:11 +0200)
mainwindow.cpp

index fd9a45dfe2296a4b16bbc2439fc9c0b702f8f5de..327c76bdffc4fcae2a707fb7eb09919825e358ce 100644 (file)
@@ -155,7 +155,7 @@ void MainWindow::action(const QString &a){
     }
     else if(b[0]==QString("a/b")){
         bool ok;
-        QString e=QInputDialog::getItem(this, QString("choice"), QString("On vous offre un choix."), c.split(QString("<q>")), 0, 1, &ok);
+        QString e=QInputDialog::getItem(this, QString("choice"), QString("On vous offre un choix."), c.split(QString("!q!")), 0, 1, &ok);
         if(ok)action(e);
     }
     else if(b[0]=="back"){
@@ -165,8 +165,8 @@ void MainWindow::action(const QString &a){
         }
     }
     else if(b[0]=="run"){
-        for(int d=0; d<=a.count(QString("<q>")); d++){
-            action(c.split(QString("<q>"))[d]);
+        for(int d=0; d<=a.count(QString("!q!")); d++){
+            action(c.split(QString("!q!"))[d]);
         }
     }
     else if(b[0]=="setfile"){
@@ -174,6 +174,7 @@ void MainWindow::action(const QString &a){
     }
     else if(b[0]==QString("box")){
         QMessageBox::information(this, QString("box"), c);
+
     }
     else if(b[0]=="quit"){
         quit();