diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-10-12 03:11:38 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-10-12 03:11:38 (GMT) |
commit | 650a0078e2cef43eff107fe8d2505f64a0bfedf0 (patch) | |
tree | baea5084ec32f1ba492d33919be379d88b023a55 /src/declarative/graphicsitems/qdeclarativelistview_p.h | |
parent | 3f0eb0416205600b97a0504006d7fbb09a10e035 (diff) | |
download | Qt-650a0078e2cef43eff107fe8d2505f64a0bfedf0.zip Qt-650a0078e2cef43eff107fe8d2505f64a0bfedf0.tar.gz Qt-650a0078e2cef43eff107fe8d2505f64a0bfedf0.tar.bz2 |
Update sections if model content changes.
We didn't handle the section property changing, e.g. due to asynchronous
model.
Task-number: QT-4093
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview_p.h')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview_p.h b/src/declarative/graphicsitems/qdeclarativelistview_p.h index 735b248..2678b90 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview_p.h +++ b/src/declarative/graphicsitems/qdeclarativelistview_p.h @@ -250,11 +250,13 @@ protected: virtual void componentComplete(); private Q_SLOTS: + void updateSections(); void refill(); void trackedPositionChanged(); void itemsInserted(int index, int count); void itemsRemoved(int index, int count); void itemsMoved(int from, int to, int count); + void itemsChanged(int index, int count); void modelReset(); void destroyRemoved(); void createdItem(int index, QDeclarativeItem *item); |