diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-12-02 09:51:42 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-02 09:55:18 -0800 |
commit | 3c064d58578fac536095b68236ae2296935563b4 (patch) | |
tree | 95535166d9c843d6a441f006b5ddb7202f93b553 /qt-ui/maintab.cpp | |
parent | 7ce12f1e8b4614a7b77bf4f05668ff5c79e7f541 (diff) | |
download | subsurface-3c064d58578fac536095b68236ae2296935563b4.tar.gz |
Make the message when editing a dive fit better
This should keep the message widget visible without horizontal scroll bar,
even on fairly small screens.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 103fe7b8d..e8bf714d2 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -175,20 +175,20 @@ void MainTab::enableEdition(EditMode newEditMode) notesBackup.clear(); if (mainWindow() && mainWindow()->dive_list()->selectedTrips().count() == 1) { // we are editing trip location and notes - ui.diveNotesMessage->setText(tr("This trip is being edited. Select Save or Cancel when done.")); + ui.diveNotesMessage->setText(tr("This trip is being edited.\nSelect Save or Cancel when done.")); ui.diveNotesMessage->animatedShow(); - ui.diveEquipmentMessage->setText(tr("This trip is being edited. Select Save or Cancel when done.")); + ui.diveEquipmentMessage->setText(tr("This trip is being edited.\nSelect Save or Cancel when done.")); ui.diveEquipmentMessage->animatedShow(); notesBackup[NULL].notes = ui.notes->toPlainText(); notesBackup[NULL].location = ui.location->text(); editMode = TRIP; } else { if (amount_selected > 1) { - ui.diveNotesMessage->setText(tr("Multiple dives are being edited. Select Save or Cancel when done.")); - ui.diveEquipmentMessage->setText(tr("Multiple dives are being edited. Select Save or Cancel when done.")); + ui.diveNotesMessage->setText(tr("Multiple dives are being edited.\nSelect Save or Cancel when done.")); + ui.diveEquipmentMessage->setText(tr("Multiple dives are being edited.\nSelect Save or Cancel when done.")); } else { - ui.diveNotesMessage->setText(tr("This dive is being edited. Select Save or Cancel when done.")); - ui.diveEquipmentMessage->setText(tr("This dive is being edited. Select Save or Cancel when done.")); + ui.diveNotesMessage->setText(tr("This dive is being edited.\nSelect Save or Cancel when done.")); + ui.diveEquipmentMessage->setText(tr("This dive is being edited.\nSelect Save or Cancel when done.")); } ui.diveNotesMessage->animatedShow(); ui.diveEquipmentMessage->animatedShow(); |