summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Tim Wootton <tim@tee-jay.demon.co.uk>2014-05-30 23:46:55 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 20:20:17 -0700
commitd825d689dd610b4e85f5a7b454927c6f4f3e2e4e (patch)
tree9a6a966dc5ba1078f0dc69163daba2e002c311f5 /qt-ui/simplewidgets.cpp
parent89f35321452925182594304961193a8091368ff7 (diff)
downloadsubsurface-d825d689dd610b4e85f5a7b454927c6f4f3e2e4e.tar.gz
Override the MinMaxAvgWidget tool tips for the depth instance.
Add new methods to the MinMaxAvgWidget class to allow us to override the default tooltips of its min and max icons, and then uses these methods to make the tooltips for the Stats tab Depth instance more descriptive. See #521 Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp10
1 files changed, 10 insertions, 0 deletions
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());