From f9c777c0cab09768e747ad1b3a10506401776faa Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 16 Dec 2011 11:53:07 +0100 Subject: [PATCH] ignore mouse presses BUG: 288827 --- declarativeimports/core/declarativeitemcontainer.cpp | 5 +++++ declarativeimports/core/declarativeitemcontainer_p.h | 1 + 2 files changed, 6 insertions(+) diff --git a/declarativeimports/core/declarativeitemcontainer.cpp b/declarativeimports/core/declarativeitemcontainer.cpp index 4d5ed88e1..ef0eb77d0 100644 --- a/declarativeimports/core/declarativeitemcontainer.cpp +++ b/declarativeimports/core/declarativeitemcontainer.cpp @@ -59,6 +59,11 @@ void DeclarativeItemContainer::resizeEvent(QGraphicsSceneResizeEvent *event) } } +void DeclarativeItemContainer::mousePressEvent(QGraphicsSceneMouseEvent *event) +{ + event->ignore(); +} + void DeclarativeItemContainer::widthChanged() { if (!m_declarativeItem) { diff --git a/declarativeimports/core/declarativeitemcontainer_p.h b/declarativeimports/core/declarativeitemcontainer_p.h index a92ce19bb..d900fff94 100644 --- a/declarativeimports/core/declarativeitemcontainer_p.h +++ b/declarativeimports/core/declarativeitemcontainer_p.h @@ -39,6 +39,7 @@ public: protected: void resizeEvent(QGraphicsSceneResizeEvent *event); + void mousePressEvent(QGraphicsSceneMouseEvent *event); protected Q_SLOTS: void widthChanged();