Changeset cd27c1c in subsurface


Ignore:
Timestamp:
Apr 26, 2017, 9:27:37 PM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
5c98cf3
Parents:
1ec0d43
git-author:
Anton Lundin <glance@…> (01/10/17 07:56:55)
git-committer:
Dirk Hohndel <dirk@…> (04/26/17 21:27:37)
Message:

Hide avg max depth thingie

We don't set it so just hide it.

Signed-off-by: Anton Lundin <glance@…>

Location:
desktop-widgets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/simplewidgets.cpp

    r5e67a93 rcd27c1c  
    127127        d->maxIco->setToolTip(newTip);
    128128        d->maxValue->setToolTip(newTip);
     129}
     130
     131void MinMaxAvgWidget::setAvgVisibility(const bool visible)
     132{
     133        d->avgIco->setVisible(visible);
     134        d->avgValue->setVisible(visible);
    129135}
    130136
  • desktop-widgets/simplewidgets.h

    r2b5a235 rcd27c1c  
    4444        void overrideAvgToolTipText(const QString &newTip);
    4545        void overrideMaxToolTipText(const QString &newTip);
     46        void setAvgVisibility(const bool visible);
    4647        void clear();
    4748
  • desktop-widgets/tab-widgets/TabDiveStatistics.cpp

    r1ec0d43 rcd27c1c  
    5151        // ui->depthLimits->setAverage(get_depth_string(stats_selection.avg_depth, true));
    5252
     53        // Also hide the avgIco, so its clear that its not there.
     54        ui->depthLimits->overrideAvgToolTipText("");
     55        ui->depthLimits->setAvgVisibility(false);
    5356
    5457        if (stats_selection.max_sac.mliter)
Note: See TracChangeset for help on using the changeset viewer.