diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 05:21:23 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-31 05:21:23 (GMT) |
commit | cb9384b7ffb2f2cebba432c225a8d9a664ffd846 (patch) | |
tree | 9b3e724dde96f4af888005df8d94a1a89f546bc6 /src/declarative/fx/qfxitem.cpp | |
parent | fb6498857241eb053cbf664d6f83928cab41cc8a (diff) | |
download | Qt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.zip Qt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.tar.gz Qt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.tar.bz2 |
More QFxItem cleanup.
Diffstat (limited to 'src/declarative/fx/qfxitem.cpp')
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index a9c406d..5eb2516 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -1644,28 +1644,17 @@ bool QFxItem::sceneEvent(QEvent *event) QVariant QFxItem::itemChange(GraphicsItemChange change, const QVariant &value) { - Q_D(QFxItem); - if (change == ItemSceneHasChanged) { - d->canvas = qvariant_cast<QGraphicsScene *>(value); - } else if (change == ItemChildAddedChange || - change == ItemChildRemovedChange) { - childrenChanged(); - } else if (change == ItemParentHasChanged) { + if (change == ItemParentHasChanged) { emit parentChanged(); } return QGraphicsItem::itemChange(change, value); } - void QFxItem::mouseUngrabEvent() { } -void QFxItem::childrenChanged() -{ -} - QRectF QFxItem::boundingRect() const { Q_D(const QFxItem); @@ -1900,8 +1889,13 @@ void QFxItem::setOptions(Options options, bool set) setFlag(QGraphicsItem::ItemAutoDetectsFocusProxy, d->options & IsFocusRealm); } -void QFxItem::paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *) +void QFxItem::paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) +{ +} + +bool QFxItem::event(QEvent *ev) { + return QGraphicsObject::event(ev); } QT_END_NAMESPACE |