From 71680def7f7c9b3e59d4bc93816b87e6131d35da Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Thu, 28 Jun 2007 23:29:47 +0000 Subject: ++optimization svn path=/trunk/KDE/kdebase/apps/; revision=681449 --- src/klistview_p.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/klistview_p.h') diff --git a/src/klistview_p.h b/src/klistview_p.h index 2980e98d6..11c0c3a6e 100644 --- a/src/klistview_p.h +++ b/src/klistview_p.h @@ -99,10 +99,16 @@ public: void updateScrollbars(); /** - * This method will draw dragged items + * This method will draw dragged items in the painting operation */ void drawDraggedItems(QPainter *painter); + /** + * This method will determine which rect needs to be updated because of a + * dragging operation + */ + void drawDraggedItems(); + // Attributes @@ -121,6 +127,7 @@ public: bool isDragging; bool dragLeftViewport; QModelIndex hovered; + QString hoveredCategory; QPoint initialPressPosition; QPoint mousePosition; QItemSelection lastSelection; @@ -135,7 +142,7 @@ public: QHash categoriesPosition; QStringList categories; QModelIndexList intersectedIndexes; - QString hoveredCategory; + QRect lastDraggedItemsRect; // Attributes for speed reasons KSortFilterProxyModel *proxyModel; -- cgit v1.3.1