summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlayouts.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-31 05:21:23 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-31 05:21:23 (GMT)
commitcb9384b7ffb2f2cebba432c225a8d9a664ffd846 (patch)
tree9b3e724dde96f4af888005df8d94a1a89f546bc6 /src/declarative/fx/qfxlayouts.cpp
parentfb6498857241eb053cbf664d6f83928cab41cc8a (diff)
downloadQt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.zip
Qt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.tar.gz
Qt-cb9384b7ffb2f2cebba432c225a8d9a664ffd846.tar.bz2
More QFxItem cleanup.
Diffstat (limited to 'src/declarative/fx/qfxlayouts.cpp')
-rw-r--r--src/declarative/fx/qfxlayouts.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp
index da34b8c..836e3e4 100644
--- a/src/declarative/fx/qfxlayouts.cpp
+++ b/src/declarative/fx/qfxlayouts.cpp
@@ -253,9 +253,15 @@ void QFxBaseLayout::componentComplete()
preLayout();
}
-void QFxBaseLayout::childrenChanged()
+QVariant QFxBaseLayout::itemChange(GraphicsItemChange change,
+ const QVariant &value)
{
- preLayout();
+ if (change == ItemChildAddedChange ||
+ change == ItemChildRemovedChange) {
+ preLayout();
+ }
+
+ return QFxItem::itemChange(change, value);
}
bool QFxBaseLayout::event(QEvent *e)