From e9568d8e6064a1ca6c92e1d3bca614ad454b0f47 Mon Sep 17 00:00:00 2001 From: Norbert Moutarde Date: Sun, 15 Jun 2014 20:21:41 +0200 Subject: [PATCH] I've removed gettext:multiline --- mainwindow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1794053..a75d29c 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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); -- 2.45.1