summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qlistview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-10-29 14:44:08 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-10-29 14:44:08 (GMT)
commit02d815b4bd497a5c7f07330576a5e3c3da3f46ab (patch)
tree952187386613641bb1a51df67d2077dfc97bac9b /src/gui/itemviews/qlistview.cpp
parent95ddf23a0c9e0120d55d7104480d78a64fa8cc77 (diff)
downloadQt-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.cpp6
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())