aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickdraghandler_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/handlers/qquickdraghandler_p.h')
-rw-r--r--src/quick/handlers/qquickdraghandler_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/quick/handlers/qquickdraghandler_p.h b/src/quick/handlers/qquickdraghandler_p.h
index a75ea6f2c7..54fef697f7 100644
--- a/src/quick/handlers/qquickdraghandler_p.h
+++ b/src/quick/handlers/qquickdraghandler_p.h
@@ -112,14 +112,16 @@ Q_SIGNALS:
protected:
bool wantsEventPoint(QQuickEventPoint *point) override;
+ void onActiveChanged() override;
void onGrabChanged(QQuickPointerHandler *grabber, QQuickEventPoint::GrabState stateChange, QQuickEventPoint *point) override;
private:
void ungrab();
void enforceAxisConstraints(QPointF *localPos);
+ void initializeTargetStartPos(QQuickEventPoint *point);
private:
- QPointF m_startPos;
+ QPointF m_targetStartPos;
QPointF m_translation;
QQuickDragAxis m_xAxis;
QQuickDragAxis m_yAxis;