diff options
author | Michal Policht <michpolicht@gmail.com> | 2017-09-01 19:56:39 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-09-06 06:47:19 +0000 |
commit | 3512d1b617fb66f13a01e8763e395fcf69b0b5b7 (patch) | |
tree | 53f8988c11d36e391859212466e0c24d96f8ac2e /src/quicktemplates2/qquickdrawer_p_p.h | |
parent | 60eaf0f9432697416abdc758e003c9ac44962324 (diff) |
Fix non-modal drawer drag/swipe open and close
Function QQuickPopupPrivate::blockInput() has been overridden in
QQuickDrawerPrivate to accept events that occur while mouse/touch is
grabbed and events within drag area.
Task-number: QTBUG-59652
Change-Id: Icf4129e702a351b266ea9c4544830185c315fc37
Reviewed-by: J-P Nurmi <jpnurmi@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 6ed62cf5..aff6e81e 100644 --- a/src/quicktemplates2/qquickdrawer_p_p.h +++ b/src/quicktemplates2/qquickdrawer_p_p.h @@ -77,6 +77,7 @@ public: #if QT_CONFIG(quicktemplates2_multitouch) bool grabTouch(QQuickItem *item, QTouchEvent *event); #endif + bool blockInput(QQuickItem *item, const QPointF &point) const override; bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp) override; bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp) override; |