summaryrefslogtreecommitdiffstats
path: root/qt-ui/profilegraphics.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-10 13:57:36 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-10 10:48:37 -0700
commit1fec7d849c69e7e6cca71c268e9331a4a52ad6e8 (patch)
treee4d5d164ecb8fd9a46826f52357d2651f0d9ce51 /qt-ui/profilegraphics.h
parentfe6237b2733d50b36f0c2d6de515b86891581dd4 (diff)
downloadsubsurface-1fec7d849c69e7e6cca71c268e9331a4a52ad6e8.tar.gz
Fixed Zoom and Positioning of the Ruler Items
The items are still being placed far from each other when zooming in - I need a bit of help with the math for that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profilegraphics.h')
-rw-r--r--qt-ui/profilegraphics.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index 08dffd6a3..cd87276e3 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -72,7 +72,7 @@ protected:
private:
void plot_depth_profile();
- void plot_text(text_render_options_t *tro, const QPointF& pos, const QString &text, QGraphicsItem *parent = 0);
+ QGraphicsSimpleTextItem* plot_text(text_render_options_t *tro, const QPointF& pos, const QString &text, QGraphicsItem *parent = 0);
void plot_events(struct divecomputer *dc);
void plot_one_event(struct event *event);
void plot_temperature_profile();
@@ -97,6 +97,12 @@ private:
graphics_context gc;
struct dive *dive;
int zoomLevel;
+
+ // Top Level Items.
+ QGraphicsItem* profileGrid;
+ QGraphicsItem* timeMarkers;
+ QGraphicsItem* depthMarkers;
+ QGraphicsItem* diveComputer;
};
#endif