diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-02 11:12:15 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-02 11:12:15 -0300 |
commit | 6115dc1f1299d300d477e32745bbb29bdfe3429d (patch) | |
tree | 473c7f627a43b815e61f474a711c6f06d7aea7bb /qt-ui/diveplanner.h | |
parent | c98894fd5200008a8ef77b748bd5bdb4684cebdd (diff) | |
download | subsurface-6115dc1f1299d300d477e32745bbb29bdfe3429d.tar.gz |
Change the rules so they work with percentages.
Changed the ruler so that they work with percentages,
also added a new method to the rules to set the size of the
ticks.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index 5f0ec7e08..da3e6a4f1 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -37,6 +37,7 @@ public: void setMaximum(double maximum); void setTickInterval(double interval); void setOrientation(Qt::Orientation orientation); + void setTickSize(qreal size); void updateTicks(); double minimum() const; double maximum() const; @@ -51,6 +52,7 @@ private: double interval; double posBegin; double posEnd; + double tickSize; }; class DivePlannerGraphics : public QGraphicsView { |