diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-29 14:44:08 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-10-29 14:44:08 (GMT) |
commit | 02d815b4bd497a5c7f07330576a5e3c3da3f46ab (patch) | |
tree | 952187386613641bb1a51df67d2077dfc97bac9b /src/gui/itemviews/qlistview.cpp | |
parent | 95ddf23a0c9e0120d55d7104480d78a64fa8cc77 (diff) | |
download | Qt-02d815b4bd497a5c7f07330576a5e3c3da3f46ab.zip Qt-02d815b4bd497a5c7f07330576a5e3c3da3f46ab.tar.gz Qt-02d815b4bd497a5c7f07330576a5e3c3da3f46ab.tar.bz2 |
QListView: make sure we relayout items when data changes in the model
Task-number: QTBUG-633
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews/qlistview.cpp')
-rw-r--r-- | src/gui/itemviews/qlistview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp index 109d760..d680af8 100644 --- a/src/gui/itemviews/qlistview.cpp +++ b/src/gui/itemviews/qlistview.cpp @@ -2403,6 +2403,12 @@ QVector<QModelIndex> QListModeViewBase::intersectingSet(const QRect &area) const return ret; } +void QListModeViewBase::dataChanged(const QModelIndex &, const QModelIndex &) +{ + dd->doDelayedItemsLayout(); +} + + QRect QListModeViewBase::mapToViewport(const QRect &rect) const { if (isWrapping()) |