mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
493f366765
commit
242ef056f6
2 changed files with 45 additions and 23 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue