diff --git a/desktop-widgets/shiftimagetimes.ui b/desktop-widgets/shiftimagetimes.ui index 0478a62b4..be09c23c1 100644 --- a/desktop-widgets/shiftimagetimes.ui +++ b/desktop-widgets/shiftimagetimes.ui @@ -10,7 +10,7 @@ 0 0 693 - 606 + 600 @@ -139,11 +139,17 @@ Not all images have timestamps in the range between - + color: red; - + + QTextEdit::NoWrap + + + true + + diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index 331426318..8caa1b9dd 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -380,9 +380,10 @@ void ShiftImageTimesDialog::updateInvalid() timestamp_t timestamp; bool allValid = true; ui.warningLabel->hide(); - ui.invalidLabel->hide(); + ui.invalidFilesText->hide(); QDateTime time = QDateTime::fromTime_t(displayed_dive.when, Qt::UTC); - ui.invalidLabel->setText("Dive:" + time.toString() + "\n"); + ui.invalidFilesText->setPlainText(tr("Dive date/time") + ": " + time.toString() + "\n"); + ui.invalidFilesText->append(tr("Files with inappropriate date/time") + ":"); Q_FOREACH (const QString &fileName, fileNames) { if (picture_check_valid(fileName.toUtf8().data(), m_amount)) @@ -391,13 +392,13 @@ void ShiftImageTimesDialog::updateInvalid() // We've found invalid image timestamp = picture_get_timestamp(fileName.toUtf8().data()); time.setTime_t(timestamp + m_amount); - ui.invalidLabel->setText(ui.invalidLabel->text() + fileName + " " + time.toString() + "\n"); + ui.invalidFilesText->append(fileName + " " + time.toString()); allValid = false; } if (!allValid){ ui.warningLabel->show(); - ui.invalidLabel->show(); + ui.invalidFilesText->show(); } }