aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickdrawer_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-09-04 10:11:20 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-09-06 11:41:25 +0000
commitb9600bb83536ad3072072a374883ce835302dc56 (patch)
treeb4e17a1093063ae122664c01f583ad231944d054 /src/quicktemplates2/qquickdrawer_p_p.h
parent058f2dcc6070a9a36f269dd3fff6017c546d0b53 (diff)
QQuickDrawerPrivate::startDrag()
Split startDrag() out of handleMousePressEvent(). This makes the mouse press handling code a bit easier to read. The new method will be later utilized by QQuickOverlay. Change-Id: I1118d86657a77d72353faac928b0a8deba4ff501 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer_p_p.h')
-rw-r--r--src/quicktemplates2/qquickdrawer_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdrawer_p_p.h b/src/quicktemplates2/qquickdrawer_p_p.h
index 232b0b08..2cf752d5 100644
--- a/src/quicktemplates2/qquickdrawer_p_p.h
+++ b/src/quicktemplates2/qquickdrawer_p_p.h
@@ -69,6 +69,8 @@ public:
qreal positionAt(const QPointF &point) const;
void reposition() override;
+ bool startDrag(QQuickWindow *window, QMouseEvent *event);
+
bool handleMousePressEvent(QQuickItem *item, QMouseEvent *event);
bool handleMouseMoveEvent(QQuickItem *item, QMouseEvent *event);
bool handleMouseReleaseEvent(QQuickItem *item, QMouseEvent *event);