diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-04 10:29:28 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-07-04 10:29:28 -0300 |
commit | 20ec98f2a5e31a91cc779666fa72ac2961bc87df (patch) | |
tree | e2e5e8eaef38c2fd07b44103218e23ebf61617e0 /qt-ui/diveplanner.h | |
parent | 603d2f5cb3c748bbb64711a99d1c115f6407d09e (diff) | |
download | subsurface-20ec98f2a5e31a91cc779666fa72ac2961bc87df.tar.gz |
Make it possible to drag a handle between handlers
Make it possible to drag a handle between handlers,
this way the configuration of the dive is more acurate
and easyer to make. I'v discovered a problem where it's
a bit hard to 'grab' the handler, investigating it now.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r-- | qt-ui/diveplanner.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h index e9dfd91e9..547e38727 100644 --- a/qt-ui/diveplanner.h +++ b/qt-ui/diveplanner.h @@ -73,7 +73,6 @@ protected: bool isPointOutOfBoundaries(const QPointF& point); void deleteTemporaryDivePlan(struct divedatapoint* dp); qreal fromPercent(qreal percent, Qt::Orientation orientation); - private slots: void increaseTime(); void increaseDepth(); @@ -96,8 +95,9 @@ private: /* This is the handler that's being dragged. */ DiveHandler *activeDraggedHandler; - // helper to save the positions where the drag-handler is valid. - QPointF lastValidPos; + // When we start to move the handler, this pos is saved. + // so we can revert it later. + QPointF originalHandlerPos; /* this is the background of the dive, the blue-gradient. */ QGraphicsPolygonItem *diveBg; |