diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-19 17:19:00 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-19 21:36:55 -0800 |
commit | 9d2344d01b05dab1c1d5d59893b980366a041e17 (patch) | |
tree | d8cda80488a22c5c9e4d32b49bf82bef4aaee07e /qt-ui/profile/divecartesianaxis.h | |
parent | 72b5bbce6e2f177af0b769dbafd0db17dd6a1899 (diff) | |
download | subsurface-9d2344d01b05dab1c1d5d59893b980366a041e17.tar.gz |
Fix the positioning of the Labels using the new DiveTextItem
This uses a combination of items on the canvas which makes it easier to
position it where I want.
This also broke the other texts because I forgot about them. I will
fix that on the next commit.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r-- | qt-ui/profile/divecartesianaxis.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index 3975de7e2..13de9edec 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -29,6 +29,8 @@ public: qreal posAtValue(qreal value); void setColor(const QColor& color); void setTextColor(const QColor& color); + void setShowTicks(bool show); + void setShowText(bool show); int unitSystem; signals: void sizeChanged(); @@ -43,6 +45,8 @@ protected: double interval; double tickSize; QColor textColor; + bool showTicks; + bool showText; }; class DepthAxis : public DiveCartesianAxis { |