summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 15:15:10 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 15:15:10 -0300
commit52a0e6c82d60076361fd0a3de7d2417c3fbc2e99 (patch)
tree788502f7339f09b4b37cbe546c35b7483f050ef4 /qt-ui/diveplanner.h
parent607f82ade30e7d72370654a158e1d58f6444d67e (diff)
downloadsubsurface-52a0e6c82d60076361fd0a3de7d2417c3fbc2e99.tar.gz
Make the plan handlers to not move across other handlers.
This patch disables the hability to move handlers across the others, making a 'zigzag' in the time line. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index db94900c1..48f254bcd 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -22,13 +22,14 @@ protected:
virtual void mouseMoveEvent(QMouseEvent* event);
virtual void mousePressEvent(QMouseEvent* event);
virtual void mouseReleaseEvent(QMouseEvent* event);
-
+
void clear_generated_deco();
void create_deco_stop();
bool isPointOutOfBoundaries(QPointF point);
private:
DivePlanner(QWidget* parent = 0);
+ void moveActiveHandler(QPointF pos);
QList<QGraphicsLineItem*> lines;
QList<DiveHandler *> handles;
QGraphicsLineItem *verticalLine;