summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-19 12:25:08 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-20 15:41:35 -0700
commit867d9f13910b04c2023a98db75152f16837c9e35 (patch)
treed55fbfb14e1ff6dc09928e4bf86b2cd3545f4546 /qt-ui
parent9c2c3366285871d40cb769d93bfa0a0144464c9b (diff)
downloadsubsurface-867d9f13910b04c2023a98db75152f16837c9e35.tar.gz
Simplify code
If a class inherits QObject, it doesn't needs to call QObject::tr for the tr function. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 1a30d84e1..d3ebe4f28 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -511,8 +511,8 @@ void MainTab::updateDiveInfo(int dive)
// the overall average depth is really confusing when listed between the
// deepest and shallowest dive - let's just not set it
// 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.depthLimits->overrideMaxToolTipText(tr("Deepest Dive"));
+ ui.depthLimits->overrideMinToolTipText(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")));