diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-29 15:38:08 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-01 19:57:47 +0000 |
commit | 567dc4de269317e81facd08f5b5f1e31b0b6cc65 (patch) | |
tree | 811d91c9a93c2eed8dc4d4cea7269ef7b4aaf32d /src/templates/qquickpopup_p_p.h | |
parent | 758b2b27f30bbec3af2b6dafc94bf20098defdfa (diff) |
Add QQuickPopup::childMouseEventFilter() for QQuickDrawer
QQuickDrawer needs to be able to filter child mouse events so
that the drawer can be closed by dragging also over the drawer,
not just outside.
Change-Id: I5b9978ebdf33cd0095d6cf67a0d76eee2edae8b6
Task-number: QTBUG-51007
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickpopup_p_p.h')
-rw-r--r-- | src/templates/qquickpopup_p_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/qquickpopup_p_p.h b/src/templates/qquickpopup_p_p.h index a6fdcd00..f62a82ec 100644 --- a/src/templates/qquickpopup_p_p.h +++ b/src/templates/qquickpopup_p_p.h @@ -92,6 +92,7 @@ public: explicit QQuickPopupItem(QQuickPopup *popup); protected: + bool childMouseEventFilter(QQuickItem *child, QEvent *event) override; void focusInEvent(QFocusEvent *event) override; void focusOutEvent(QFocusEvent *event) override; void keyPressEvent(QKeyEvent *event) override; |