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>
This commit is contained in:
Tomaz Canabrava 2013-05-10 13:57:36 -03:00 committed by Dirk Hohndel
parent fe6237b273
commit 1fec7d849c
2 changed files with 41 additions and 17 deletions

View file

@ -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