summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicslistview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicslistview.cpp b/src/declarative/graphicsitems/qmlgraphicslistview.cpp
index 351364e..6460a69 100644
--- a/src/declarative/graphicsitems/qmlgraphicslistview.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicslistview.cpp
@@ -552,8 +552,7 @@ void QmlGraphicsListViewPrivate::init()
{
Q_Q(QmlGraphicsListView);
q->setFlag(QGraphicsItem::ItemIsFocusScope);
- QObject::connect(q, SIGNAL(heightChanged()), q, SLOT(refill()));
- QObject::connect(q, SIGNAL(widthChanged()), q, SLOT(refill()));
+ addItemChangeListener(this, Geometry);
QObject::connect(q, SIGNAL(movementEnded()), q, SLOT(animStopped()));
q->setFlickDirection(QmlGraphicsFlickable::VerticalFlick);
::memset(sectionCache, 0, sizeof(QmlGraphicsItem*) * sectionCacheSize);