Plotted the Scale on the Ruler ( depth / time ) on the planner

Plotted the Scale on the Ruler in the planner.
There's a tiny bit issue - mostly noticiable while resizing,
but it's not a killer.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-09-16 20:10:12 -03:00
parent 493f366765
commit 242ef056f6
2 changed files with 45 additions and 23 deletions

View file

@ -104,18 +104,19 @@ public:
qreal percentAt(const QPointF& p);
qreal posAtValue(qreal value);
void setColor(const QColor& color);
void setTextColor(const QColor& color);
private:
Qt::Orientation orientation;
QList<QGraphicsLineItem*> ticks;
QGraphicsSimpleTextItem *minText;
QGraphicsSimpleTextItem *maxText;
QList<QGraphicsSimpleTextItem*> labels;
double min;
double max;
double interval;
double posBegin;
double posEnd;
double tickSize;
QColor textColor;
};
class DivePlannerGraphics : public QGraphicsView {