]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
I've removed gettext:multiline
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sun, 15 Jun 2014 18:21:41 +0000 (20:21 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sun, 15 Jun 2014 18:21:41 +0000 (20:21 +0200)
mainwindow.cpp

index 1794053e8f7e6480688b419a21bc7cb52b0cf6c3..a75d29cd7aecf55f7aa375e1ec6da6a350a22910 100644 (file)
@@ -546,7 +546,7 @@ void MainWindow::entry(const QString &a){
     context.append(way.last());
     if(a=="")label=context+" : ";
     else label=context+", "+a+" : ";
-    entry=QInputDialog::getMultiLineText(this, trUtf8("New entry"), label, "", &ok);
+    entry=QInputDialog::getText(this, trUtf8("New entry"), label, QLineEdit::Normal, "", &ok);
     if(!ok)return;
     QString c;
     if(a=="")c=context+" : "+entry;
@@ -568,11 +568,11 @@ void MainWindow::addDB(const QString & tmp){
     qDebug()<<"addDB()";
     bool ok=0;
     QString cur=label->text();
-    QString a, b, c=QInputDialog::getMultiLineText(this, trUtf8("label", "Title of box where ask for new button's label"), trUtf8("Enter his label", "his/her/?they? I've forget my school lesson"), QString(""), &ok);
+    QString a, b, c=QInputDialog::getText(this, trUtf8("label", "Title of box where ask for new button's label"), trUtf8("Enter his label", "his/her/?they? I've forget my school lesson"), QLineEdit::Normal, QString(""), &ok);
     if ((c=="")||(ok==0))return;
-    b=QInputDialog::getMultiLineText(this, trUtf8("keyword", "Title of box where ask for new button's keyword"), trUtf8("Enter they keyword (no limit !)"), cur, &ok);
+    b=QInputDialog::getText(this, trUtf8("keyword", "Title of box where ask for new button's keyword"), trUtf8("Enter they keyword (no limit !)"), QLineEdit::Normal, cur, &ok);
     if ((b=="")||(ok==0))return;
-    a=QInputDialog::getMultiLineText(this, trUtf8("action", "Title of box where ask for new button's action"), trUtf8("Enter his action"), c, &ok);
+    a=QInputDialog::getText(this, trUtf8("action", "Title of box where ask for new button's action"), trUtf8("Enter his action"), QLineEdit::Normal, c, &ok);
     if ((a=="")||(ok==0))return;
     insert(tmp, b, c, a);
     return;
@@ -640,11 +640,11 @@ void MainWindow::editDB(const QString & a, const QString & b){
     QString keyword=q->value(1).toString();
     QString label=q->value(2).toString();
     QString action=q->value(3).toString();
-    const QString tmpkeyword=QInputDialog::getMultiLineText(this, trUtf8("keyword", "Title of box where ask for button's keyword"), trUtf8("new keyword", "question to get new button's keyword"), keyword, &ok);
+    const QString tmpkeyword=QInputDialog::getText(this, trUtf8("keyword", "Title of box where ask for button's keyword"), trUtf8("new keyword", "question to get new button's keyword"), QLineEdit::Normal, keyword, &ok);
     if(!ok)return;
-    const QString tmplabel=QInputDialog::getMultiLineText(this, trUtf8("label", "Title of box where ask for button's label"), trUtf8("new label", "question to get new button's label"), label, &ok);
+    const QString tmplabel=QInputDialog::getText(this, trUtf8("label", "Title of box where ask for button's label"), trUtf8("new label", "question to get new button's label"), QLineEdit::Normal, label, &ok);
     if(!ok)return;
-    const QString tmpaction=QInputDialog::getMultiLineText(this, trUtf8("action", "Title of box where ask for button's action"), trUtf8("new action", "question to get new button's action"), action, &ok);
+    const QString tmpaction=QInputDialog::getText(this, trUtf8("action", "Title of box where ask for button's action"), trUtf8("new action", "question to get new button's action"), QLineEdit::Normal, action, &ok);
     if(!ok)return;
     if((tmpkeyword=="")||(tmplabel=="")||(tmpaction=="")){
         remove(a, keyword, label, action);