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.h | |
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.h')
-rw-r--r-- | qt-ui/profilegraphics.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h index 715c81ebf..963dd7d90 100644 --- a/qt-ui/profilegraphics.h +++ b/qt-ui/profilegraphics.h @@ -62,7 +62,7 @@ class ProfileGraphicsView : public QGraphicsView Q_OBJECT public: ProfileGraphicsView(QWidget* parent = 0); - void plot(struct dive *d); + void plot(struct dive *d, bool forceRedraw = FALSE); bool eventFilter(QObject* obj, QEvent* event); void clear(); @@ -72,6 +72,9 @@ protected: void wheelEvent(QWheelEvent* event); void showEvent(QShowEvent* event); +public Q_SLOTS: + void refresh(); + private: void plot_depth_profile(); QGraphicsSimpleTextItem* plot_text(text_render_options_t *tro, const QPointF& pos, const QString &text, QGraphicsItem *parent = 0); |