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>
This commit is contained in:
Tomaz Canabrava 2014-06-19 12:25:08 -03:00 committed by Dirk Hohndel
parent 9c2c336628
commit 867d9f1391

View file

@ -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")));