]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
little tweaks (add a "\n" into the box to make the question more
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 1 Oct 2016 10:20:13 +0000 (12:20 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Sat, 1 Oct 2016 10:20:13 +0000 (12:20 +0200)
readable)

mainwindow.cpp

index 931b6b96c745a381f80f57c18497ee0161e7bfdb..b1cfd38a75ca713ba636a61f7cfe4c7253ee5d80 100644 (file)
@@ -730,10 +730,10 @@ void MainWindow::entry(const QString &a){
     //};
     context.append(way.last());
 
-    if((a=="")&&(!conf->value(QString("onlylast")).toBool()))label=context+" : ";
+    if((a=="")&&(!conf->value(QString("onlylast")).toBool()))label=context+" :\n ";
     else if((a=="")&&(conf->value(QString("onlylast")).toBool()))label=way.last()+" : ";
-    else if((a!="")&&(!conf->value(QString("onlylast")).toBool()))label=context+", "+ a +" : ";
-    else label=way.last()+", "+a+" : ";
+    else if((a!="")&&(!conf->value(QString("onlylast")).toBool()))label=context+",\n"+ a +" : ";
+    else label=way.last()+", "+a+" :\n ";
     if(conf->value(QString("multiline")).toBool())entry=QInputDialog::getMultiLineText(this, trUtf8("New entry"), label, QString(""), &ok);
     else entry=QInputDialog::getText(this, trUtf8("New entry"), label, QLineEdit::Normal, "", &ok);