diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-10-15 12:14:19 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-10-15 12:33:39 (GMT) |
commit | 038434b66a473c08e78dc40376c5890dd1af938f (patch) | |
tree | 242d4ceb70b601ad28ab96feb7cbd64aafcaf713 /src/gui/itemviews | |
parent | d5be015ddf268f195568d313dc2c5491a6a2db93 (diff) | |
download | Qt-038434b66a473c08e78dc40376c5890dd1af938f.zip Qt-038434b66a473c08e78dc40376c5890dd1af938f.tar.gz Qt-038434b66a473c08e78dc40376c5890dd1af938f.tar.bz2 |
Fixed updating problems QListView with IconMode
The updated rectangle coordinates didn't use the viewport offsets.
Reviewed-by: Olivier
Task-number: QTBUG-4819
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qlistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qlistview.cpp b/src/gui/itemviews/qlistview.cpp index 9b0b00f..243f542 100644 --- a/src/gui/itemviews/qlistview.cpp +++ b/src/gui/itemviews/qlistview.cpp @@ -2490,7 +2490,7 @@ bool QIconModeViewBase::filterDropEvent(QDropEvent *e) for (int i = 0; i < indexes.count(); ++i) { QModelIndex index = indexes.at(i); QRect rect = dd->rectForIndex(index); - viewport()->update(mapToViewport(rect)); + viewport()->update(dd->mapToViewport(rect, false)); QPoint dest = rect.topLeft() + delta; if (qq->isRightToLeft()) dest.setX(dd->flipX(dest.x()) - rect.width()); |