diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-03-29 05:56:41 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-03-29 05:56:41 (GMT) |
commit | 8c50262bfd9239bafdac0fbe03316af2b1e01d98 (patch) | |
tree | 4bdd624467403da3f835dc8a40f459b0c8c41b79 /src/declarative/graphicsitems/qdeclarativepositioners.cpp | |
parent | be53372df21a099474ac0b28b95f29a077a8b3f0 (diff) | |
download | Qt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.zip Qt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.tar.gz Qt-8c50262bfd9239bafdac0fbe03316af2b1e01d98.tar.bz2 |
Relayout items when Flow size changes.
Also add Flow tests.
Task-number: QTBUG-9421
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepositioners.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepositioners.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepositioners.cpp b/src/declarative/graphicsitems/qdeclarativepositioners.cpp index 5e91224..b23b8c9 100644 --- a/src/declarative/graphicsitems/qdeclarativepositioners.cpp +++ b/src/declarative/graphicsitems/qdeclarativepositioners.cpp @@ -820,6 +820,9 @@ public: QDeclarativeFlow::QDeclarativeFlow(QDeclarativeItem *parent) : QDeclarativeBasePositioner(*(new QDeclarativeFlowPrivate), Both, parent) { + Q_D(QDeclarativeFlow); + // Flow layout requires relayout if its own size changes too. + d->addItemChangeListener(d, QDeclarativeItemPrivate::Geometry); } /*! |