┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/iconmanager.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-01-13 16:54:24 +0000
committerPeter Penz <[email protected]>2008-01-13 16:54:24 +0000
commit46d40e704703c23fe9b30487ebfca68b89763422 (patch)
tree3b7e53ae18756ac60735a0345d4c1b097fb6b8f7 /src/iconmanager.h
parentf6984788a8332b7273a77bf160e2790a0308661a (diff)
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
Diffstat (limited to 'src/iconmanager.h')
-rw-r--r--src/iconmanager.h18
1 files changed, 11 insertions, 7 deletions
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 <kfileitem.h>
#include <kurl.h>
#include <QList>
@@ -27,9 +28,9 @@
#include <QPixmap>
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<KJob*> m_previewJobs;
- DolphinModel* m_dolphinModel;
+ bool m_showPreview;
- QList<CutItem> m_cutItemsCache;
+ QAbstractItemView* m_view;
+ QList<KJob*> m_previewJobs;
+ DolphinModel* m_dolphinModel;
+ DolphinSortFilterProxyModel* m_proxyModel;
+
+ QList<CutItem> m_cutItemsCache;
};
inline bool IconManager::showPreview() const