summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r--qt-ui/profilegraphics.h5
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);