summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-21 16:28:17 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-21 16:28:17 -0300
commit01d1a49d9448a2b4fd6363cf69260cc305b5e9f3 (patch)
tree7df9d41dd56045acdeab485532fe98a7e08e58d6 /qt-ui/diveplanner.h
parentc9159da43a5971d163340f3c2bb1e916952b8e1a (diff)
downloadsubsurface-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.h4
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;