diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-11 14:56:28 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-11 14:56:28 (GMT) |
commit | a701175aef8912b69afe61d23749dcfca765a231 (patch) | |
tree | b0b383440a2d1a31fb82030f80f80f13d7efd4ec /src/gui/itemviews/qlistview_p.h | |
parent | c9122b19bfd86005080631da8b8f69a01d1ab7e8 (diff) | |
download | Qt-a701175aef8912b69afe61d23749dcfca765a231.zip Qt-a701175aef8912b69afe61d23749dcfca765a231.tar.gz Qt-a701175aef8912b69afe61d23749dcfca765a231.tar.bz2 |
ItemViews: make dragging faster when lots of items are selected
QListView know exactly what they have on their viewport and we only
paint items clipped to the viewport. So we don't need to ask for each
item its visualRect.
NB: QTreeView and QTableView probably deservee the same treatment
Diffstat (limited to 'src/gui/itemviews/qlistview_p.h')
-rw-r--r-- | src/gui/itemviews/qlistview_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qlistview_p.h b/src/gui/itemviews/qlistview_p.h index a7a7000..16f2de9 100644 --- a/src/gui/itemviews/qlistview_p.h +++ b/src/gui/itemviews/qlistview_p.h @@ -351,6 +351,8 @@ public: void scrollElasticBandBy(int dx, int dy); + QItemViewPaintPairs draggablePaintPairs(const QModelIndexList &indexes, QRect *r) const; + // ### FIXME: we only need one at a time QDynamicListViewBase *dynamicListView; QStaticListViewBase *staticListView; |