diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-09-16 20:10:12 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-09-16 20:10:12 -0300 |
commit | 242ef056f6eaab44cd4283b7015f2aef4e6c0811 (patch) | |
tree | 9101323b9f3151006e25ea2accccae505f292242 /qt-ui/diveplanner.h | |
parent | 493f366765cf3bc8d1ff166b874433a8c0a900aa (diff) | |
download | subsurface-242ef056f6eaab44cd4283b7015f2aef4e6c0811.tar.gz |
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>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 84545ce40..8dd8db3e3 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -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 { |