diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-21 16:28:17 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-21 16:28:17 -0300 |
commit | 01d1a49d9448a2b4fd6363cf69260cc305b5e9f3 (patch) | |
tree | 7df9d41dd56045acdeab485532fe98a7e08e58d6 /qt-ui/diveplanner.h | |
parent | c9159da43a5971d163340f3c2bb1e916952b8e1a (diff) | |
download | subsurface-01d1a49d9448a2b4fd6363cf69260cc305b5e9f3.tar.gz |
Make the plot and handle movement stick to an 'Grid'
Make the plot and the handle stick to a grid, the
grid is defined by the integers in the rulers, so
a time of 10,2 is converted to 10, and will put the
point at 10.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index ce4dd6d4f..621e8a2a5 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -51,11 +51,11 @@ protected: void clear_generated_deco(); void create_deco_stop(); - bool isPointOutOfBoundaries(QPointF point); + bool isPointOutOfBoundaries(const QPointF& point); private: - void moveActiveHandler(QPointF pos); + void moveActiveHandler(const QPointF& pos); QList<QGraphicsLineItem*> lines; QList<DiveHandler *> handles; QGraphicsLineItem *verticalLine; |