mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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:
parent
9c2c336628
commit
867d9f1391
1 changed files with 2 additions and 2 deletions
|
@ -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")));
|
||||
|
|
Loading…
Add table
Reference in a new issue