diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-27 17:18:35 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-28 11:31:40 -0800 |
commit | 607bf479897f5216d8c95bbf4353e544e05adafe (patch) | |
tree | bd19252a73dee08724492f5ef860420650392fe5 /qt-ui/profile/divecartesianaxis.h | |
parent | 9f6ebf96a73c9663ea20a8c3e245bc3d9a4f3747 (diff) | |
download | subsurface-607bf479897f5216d8c95bbf4353e544e05adafe.tar.gz |
Fix an issue added in the last commit
The last commit made the time and all other axis behave like the time
axis. Not cool.
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h index e4366eaf4..3f18fe8ff 100644 --- a/qt-ui/profile/divecartesianaxis.h +++ b/qt-ui/profile/divecartesianaxis.h @@ -36,7 +36,7 @@ public: void animateChangeLine(const QLineF& newLine); int unitSystem; public slots: - void updateTicks(); + virtual void updateTicks(); signals: void sizeChanged(); void maxChanged(); @@ -66,6 +66,9 @@ private slots: }; class TimeAxis : public DiveCartesianAxis { + Q_OBJECT +public: + virtual void updateTicks(); protected: QString textForValue(double value); QColor colorForValue(double value); |