From 46d40e704703c23fe9b30487ebfca68b89763422 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 13 Jan 2008 16:54:24 +0000 Subject: Improve the feeled preview performance by assuring that the preview is generated first for the visible items. svn path=/trunk/KDE/kdebase/apps/; revision=760897 --- src/iconmanager.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/iconmanager.h') diff --git a/src/iconmanager.h b/src/iconmanager.h index 175e4a07e..2636c81c6 100644 --- a/src/iconmanager.h +++ b/src/iconmanager.h @@ -20,6 +20,7 @@ #ifndef ICONMANAGER_H #define ICONMANAGER_H +#include #include #include @@ -27,9 +28,9 @@ #include class DolphinModel; -class KFileItem; -class KFileItemList; +class DolphinSortFilterProxyModel; class KJob; +class QAbstractItemView; /** * @brief Manages the icon state of a directory model. @@ -43,7 +44,7 @@ class IconManager : public QObject Q_OBJECT public: - IconManager(QObject* parent, DolphinModel* model); + IconManager(QAbstractItemView* parent, DolphinSortFilterProxyModel* model); virtual ~IconManager(); void setShowPreview(bool show); bool showPreview() const; @@ -92,11 +93,14 @@ private: QPixmap pixmap; }; - bool m_showPreview; - QList m_previewJobs; - DolphinModel* m_dolphinModel; + bool m_showPreview; - QList m_cutItemsCache; + QAbstractItemView* m_view; + QList m_previewJobs; + DolphinModel* m_dolphinModel; + DolphinSortFilterProxyModel* m_proxyModel; + + QList m_cutItemsCache; }; inline bool IconManager::showPreview() const -- cgit v1.3