From 3c064d58578fac536095b68236ae2296935563b4 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 2 Dec 2013 09:51:42 -0800 Subject: 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 --- qt-ui/maintab.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qt-ui') 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(); -- cgit v1.2.3-70-g09d2