diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-09-04 14:31:58 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-09-06 11:41:27 +0000 |
commit | 1d3233e9737b494787941ceefad361fb39488f05 (patch) | |
tree | 3def5859b575e359ff259ab5552311d511e60971 /src/quicktemplates2/qquickdrawer_p_p.h | |
parent | b9600bb83536ad3072072a374883ce835302dc56 (diff) |
QQuickDrawerPrivate::grabMouse()
Split grabMouse() out of handleMouseMoveEvent(). This makes the mouse
move handling code a bit easier to read.
Change-Id: I39971e995d8d202e702bddeec0d1f9554c298c0e
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdrawer_p_p.h b/src/quicktemplates2/qquickdrawer_p_p.h index 2cf752d5..323ba319 100644 --- a/src/quicktemplates2/qquickdrawer_p_p.h +++ b/src/quicktemplates2/qquickdrawer_p_p.h @@ -70,6 +70,7 @@ public: void reposition() override; bool startDrag(QQuickWindow *window, QMouseEvent *event); + bool grabMouse(QMouseEvent *event); bool handleMousePressEvent(QQuickItem *item, QMouseEvent *event); bool handleMouseMoveEvent(QQuickItem *item, QMouseEvent *event); |