From 131abd175b4aa5f2b2b4a9fb4339851561570026 Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Tue, 13 May 2014 09:11:58 +0200 Subject: [PATCH] replace by !q! --- mainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fd9a45d..327c76b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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("")), 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("")); d++){ - action(c.split(QString(""))[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(); -- 2.45.1