diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 05:52:03 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 05:52:03 (GMT) |
commit | ff5ebbf9f99e9b489dba7e98814ddfdccf2cf71c (patch) | |
tree | fbbc3224caa385f2e1614efad1ade0bdc26093b1 /src/declarative/fx/qfxpathview.cpp | |
parent | fc5af680d26aba684f4cbd4caa0440aabc3153d4 (diff) | |
download | Qt-ff5ebbf9f99e9b489dba7e98814ddfdccf2cf71c.zip Qt-ff5ebbf9f99e9b489dba7e98814ddfdccf2cf71c.tar.gz Qt-ff5ebbf9f99e9b489dba7e98814ddfdccf2cf71c.tar.bz2 |
Get rid of QFxItem::options.
They can all be set directly with QGraphicsItem flags or functions.
Diffstat (limited to 'src/declarative/fx/qfxpathview.cpp')
-rw-r--r-- | src/declarative/fx/qfxpathview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp index ee3ad2b..17f6dd3 100644 --- a/src/declarative/fx/qfxpathview.cpp +++ b/src/declarative/fx/qfxpathview.cpp @@ -535,17 +535,17 @@ bool QFxPathView::sendMouseEvent(QGraphicsSceneMouseEvent *event) return false; } -bool QFxPathView::mouseFilter(QGraphicsSceneMouseEvent *e) +bool QFxPathView::sceneEventFilter(QGraphicsItem *i, QEvent *e) { if (!isVisible()) - return false; + return QFxItem::sceneEventFilter(i, e); switch (e->type()) { case QEvent::GraphicsSceneMousePress: case QEvent::GraphicsSceneMouseMove: case QEvent::GraphicsSceneMouseRelease: { - bool ret = sendMouseEvent(e); + bool ret = sendMouseEvent(static_cast<QGraphicsSceneMouseEvent *>(e)); if (e->type() == QEvent::GraphicsSceneMouseRelease) return ret; break; @@ -554,7 +554,7 @@ bool QFxPathView::mouseFilter(QGraphicsSceneMouseEvent *e) break; } - return false; + return QFxItem::sceneEventFilter(i, e); } void QFxPathViewPrivate::regenerate() |