aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 18:40:08 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 18:44:51 +0000
commit3ddbab6847c23bc020fd3eaac2a9b1e10350459f (patch)
treea84feb216f018e8fea31a1693bace241b2e47ca0 /qt-ui/simplewidgets.cpp
parentf5bea8fcfd2b9baa7ddd6b5f7c892d07139f29eb (diff)
downloadsubsurface-3ddbab6847c23bc020fd3eaac2a9b1e10350459f.tar.gz
Clarify the meaning of the values in the stats tab
Extend the tooltips to be shown both on the labels and the values and add tooltips for all min/avg/max elements. To avoid confusion when only one dive is selected, no longer show min SAC or max SAC or min duration or max duration. Fixes #694 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 4b3d789e7..da8a7d014 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -112,11 +112,19 @@ void MinMaxAvgWidget::setMinimum(const QString &minimum)
void MinMaxAvgWidget::overrideMinToolTipText(const QString &newTip)
{
d->minIco->setToolTip(newTip);
+ d->minValue->setToolTip(newTip);
+}
+
+void MinMaxAvgWidget::overrideAvgToolTipText(const QString &newTip)
+{
+ d->avgIco->setToolTip(newTip);
+ d->avgValue->setToolTip(newTip);
}
void MinMaxAvgWidget::overrideMaxToolTipText(const QString &newTip)
{
d->maxIco->setToolTip(newTip);
+ d->maxValue->setToolTip(newTip);
}
RenumberDialog *RenumberDialog::instance()