From 867d9f13910b04c2023a98db75152f16837c9e35 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 19 Jun 2014 12:25:08 -0300 Subject: Simplify code If a class inherits QObject, it doesn't needs to call QObject::tr for the tr function. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui/maintab.cpp') 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"))); -- cgit v1.2.3-70-g09d2