diff options
-rw-r--r-- | qt-ui/maintab.cpp | 2 | ||||
-rw-r--r-- | qt-ui/simplewidgets.cpp | 10 | ||||
-rw-r--r-- | qt-ui/simplewidgets.h | 2 |
3 files changed, 14 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index f308292e2..cf2e944e3 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -528,6 +528,8 @@ void MainTab::updateDiveInfo(int dive) ui.depthLimits->setMaximum(get_depth_string(stats_selection.max_depth, true)); ui.depthLimits->setMinimum(get_depth_string(stats_selection.min_depth, true)); ui.depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true)); + ui.depthLimits->overrideMaxToolTipText(QObject::tr("Deepest Dive")); + ui.depthLimits->overrideMinToolTipText(QObject::tr("Shallowest Dive")); ui.sacLimits->setMaximum(get_volume_string(stats_selection.max_sac, true).append(tr("/min"))); ui.sacLimits->setMinimum(get_volume_string(stats_selection.min_sac, true).append(tr("/min"))); ui.sacLimits->setAverage(get_volume_string(stats_selection.avg_sac, true).append(tr("/min"))); diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp index 99e0ba362..18e176b0d 100644 --- a/qt-ui/simplewidgets.cpp +++ b/qt-ui/simplewidgets.cpp @@ -112,6 +112,16 @@ void MinMaxAvgWidget::setMinimum(const QString &minimum) d->minValue->setText(minimum); } +void MinMaxAvgWidget::overrideMinToolTipText(const QString &newTip) +{ + d->minIco->setToolTip(newTip); +} + +void MinMaxAvgWidget::overrideMaxToolTipText(const QString &newTip) +{ + d->maxIco->setToolTip(newTip); +} + RenumberDialog *RenumberDialog::instance() { static RenumberDialog *self = new RenumberDialog(MainWindow::instance()); diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index cecb52815..c7d18bb35 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -30,6 +30,8 @@ public: void setMinimum(const QString &minimum); void setMaximum(const QString &maximum); void setAverage(const QString &average); + void overrideMinToolTipText(const QString &newTip); + void overrideMaxToolTipText(const QString &newTip); void clear(); private: |