From d825d689dd610b4e85f5a7b454927c6f4f3e2e4e Mon Sep 17 00:00:00 2001 From: Tim Wootton Date: Fri, 30 May 2014 23:46:55 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/simplewidgets.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qt-ui/simplewidgets.cpp') 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()); -- cgit v1.2.3-70-g09d2