diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-26 11:33:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-26 11:33:45 -0700 |
commit | b947cc924ff5c78ca7e0561d3ee3891207bea5e6 (patch) | |
tree | 55383890dcaa3158e0749cc59d7c950a67c96395 /qt-ui/profilegraphics.cpp | |
parent | 96f74d9939c3394bb8ece0888b473cdf4bc88b1a (diff) | |
download | subsurface-b947cc924ff5c78ca7e0561d3ee3891207bea5e6.tar.gz |
Hook up most of the Preferences dialog
The imperial/metric super setting doesn't have any effect. But changing
the individual units now works and is tracked. And causes the display to
change after clicking "OK" (but not yet when clicking "Apply").
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.cpp')
-rw-r--r-- | qt-ui/profilegraphics.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp index deef8a9d5..722cea6bd 100644 --- a/qt-ui/profilegraphics.cpp +++ b/qt-ui/profilegraphics.cpp @@ -220,14 +220,19 @@ void ProfileGraphicsView::clear() toolTip = 0; } -void ProfileGraphicsView::plot(struct dive *d) +void ProfileGraphicsView::refresh() +{ + plot(current_dive, TRUE); +} + +void ProfileGraphicsView::plot(struct dive *d, bool forceRedraw) { struct divecomputer *dc; if (d) dc = select_dc(&d->dc); - if (dive == d && (d && dc == diveDC)) + if (!forceRedraw && dive == d && (d && dc == diveDC)) return; clear(); |