diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-10 16:06:44 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-12-10 21:03:48 +0000 |
commit | 9d39a470d1393ab429d03010bedb8cd631457842 (patch) | |
tree | 797a8c6ecac5599d1e66ba4b606930311aea66de /src/templates/qquickpane.cpp | |
parent | eba39a3ba543c04747aa837b064a35ea6b32ed89 (diff) |
Pane: don't let presses leak through
A regression introduced by 38c47c0. Pane is the base type for Frame,
GroupBox, and ToolBar. These type of containers shouldn't let presses
through. For example, an application that has a listview scrolled
below a toolbar, list items under the toolbar should not react when
interacting with the toolbar.
Change-Id: I7668452fe2d6d89372f032220fa5623b50d334bb
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickpane.cpp')
-rw-r--r-- | src/templates/qquickpane.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/templates/qquickpane.cpp b/src/templates/qquickpane.cpp index 9f1f50dd..27e76ea3 100644 --- a/src/templates/qquickpane.cpp +++ b/src/templates/qquickpane.cpp @@ -71,12 +71,14 @@ QQuickPane::QQuickPane(QQuickItem *parent) : QQuickControl(*(new QQuickPanePrivate), parent) { setFlag(QQuickItem::ItemIsFocusScope); + setAcceptedMouseButtons(Qt::AllButtons); } QQuickPane::QQuickPane(QQuickPanePrivate &dd, QQuickItem *parent) : QQuickControl(dd, parent) { setFlag(QQuickItem::ItemIsFocusScope); + setAcceptedMouseButtons(Qt::AllButtons); } /*! |