diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-11-02 12:10:33 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-11-03 23:08:39 -0800 |
commit | 7d18a525f178c2c47ec72a96fbda92d5595f95d9 (patch) | |
tree | 99e318b0b14c8f6919353833854c23df9648b9b1 /desktop-widgets/tab-widgets/TabDiveStatistics.cpp | |
parent | 00dd98163fd2f91e3b8e65a8c03292904771401d (diff) | |
download | subsurface-7d18a525f178c2c47ec72a96fbda92d5595f95d9.tar.gz |
desktop: allow update of tab widget colors at run time
Adding a new virtual function to all of these classes may seem like overkill,
but of course the idea is that likely we'd allow similar changes to all of
them.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveStatistics.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveStatistics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp index ce8eba13c..da0587802 100644 --- a/desktop-widgets/tab-widgets/TabDiveStatistics.cpp +++ b/desktop-widgets/tab-widgets/TabDiveStatistics.cpp @@ -112,7 +112,7 @@ void TabDiveStatistics::updateData() bool is_freedive = current_dive && current_dive->dc.divemode == FREEDIVE; ui->divesAllText->setText(QString::number(stats_selection.selection_size)); ui->totalTimeAllText->setText(get_dive_duration_string(stats_selection.total_time.seconds, tr("h"), tr("min"), tr("sec"), " ", is_freedive)); - + int seconds = stats_selection.total_time.seconds; if (stats_selection.selection_size) seconds /= stats_selection.selection_size; |