From 4cf8450bc4df6bbd8a307a087de54f3986ee4a33 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 29 Jun 2008 21:40:07 +0000 Subject: The check whether there is a cut-selection when receiving a preview consumes 12 % (!) of the runtime in addToPreviewQueue(). The check is now done only once before starting the preview generation and when the clipboard data has been changed. svn path=/trunk/KDE/kdebase/apps/; revision=826126 --- src/iconmanager.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/iconmanager.h') diff --git a/src/iconmanager.h b/src/iconmanager.h index 06d7df85a..aee7672aa 100644 --- a/src/iconmanager.h +++ b/src/iconmanager.h @@ -170,6 +170,11 @@ private: */ bool m_clearItemQueues; + /** + * True if a selection has been done which should cut items. + */ + bool m_hasCutSelection; + int m_pendingVisiblePreviews; QAbstractItemView* m_view; -- cgit v1.3