aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickpane.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-10 16:06:44 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-10 21:03:48 +0000
commit9d39a470d1393ab429d03010bedb8cd631457842 (patch)
tree797a8c6ecac5599d1e66ba4b606930311aea66de /src/templates/qquickpane.cpp
parenteba39a3ba543c04747aa837b064a35ea6b32ed89 (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.cpp2
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);
}
/*!