summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-31 05:52:03 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-31 05:52:03 (GMT)
commitff5ebbf9f99e9b489dba7e98814ddfdccf2cf71c (patch)
treefbbc3224caa385f2e1614efad1ade0bdc26093b1 /src/declarative/fx/qfxpathview.cpp
parentfc5af680d26aba684f4cbd4caa0440aabc3153d4 (diff)
downloadQt-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.cpp8
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()