summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxitem.cpp')
-rw-r--r--src/declarative/fx/qfxitem.cpp20
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