summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 14:46:40 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 14:46:40 -0300
commit607f82ade30e7d72370654a158e1d58f6444d67e (patch)
treebea67dfb3ee6a481bd757ac9a6667e3b20d86836 /qt-ui/diveplanner.h
parent021a6a076e76e45bf5f6f8b976e2178a666ec1bd (diff)
downloadsubsurface-607f82ade30e7d72370654a158e1d58f6444d67e.tar.gz
Added drag and drop code to the dive plan
Added drag and drop code to the dive plan, it can move the user- inputted data, but will not touch the computer generated ones. 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, 4 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 33f647fe6..db94900c1 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -20,6 +20,9 @@ protected:
virtual void showEvent(QShowEvent* event);
virtual void resizeEvent(QResizeEvent* event);
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);
@@ -30,5 +33,6 @@ private:
QList<DiveHandler *> handles;
QGraphicsLineItem *verticalLine;
QGraphicsLineItem *horizontalLine;
+ DiveHandler *activeDraggedHandler;
};
#endif