ignore mouse presses

BUG: 288827
This commit is contained in:
Marco Martin 2011-12-16 11:53:07 +01:00
parent 2fdf11eabf
commit f9c777c0ca
2 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,11 @@ void DeclarativeItemContainer::resizeEvent(QGraphicsSceneResizeEvent *event)
}
}
void DeclarativeItemContainer::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
event->ignore();
}
void DeclarativeItemContainer::widthChanged()
{
if (!m_declarativeItem) {

View File

@ -39,6 +39,7 @@ public:
protected:
void resizeEvent(QGraphicsSceneResizeEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
protected Q_SLOTS:
void widthChanged();