From e0bd6f137d90fea9854427f57f8945ecf38991eb Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 14 Apr 2007 18:57:18 +0000 Subject: assure that the preview job gets killed when the directory has been changed svn path=/trunk/KDE/kdebase/apps/; revision=653976 --- src/dolphinview.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index f6b85f96b..aacb5e178 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -54,6 +54,11 @@ class QPainter; class QTimer; class ViewProperties; +namespace KIO +{ + class PreviewJob; +} + /** * @short Represents a view for the directory content * including the navigation bar, filter bar and status bar. @@ -521,6 +526,9 @@ private slots: /** Applies an item effect to all cut items of the clipboard. */ void updateCutItems(); + /** Is invoked when the preview job has been finished. */ + void slotPreviewResult(KJob* job); + private: void startDirLister(const KUrl& url, bool reload = false); @@ -615,6 +623,8 @@ private: DolphinDirLister* m_dirLister; DolphinSortFilterProxyModel* m_proxyModel; + KIO::PreviewJob* m_previewJob; + QList m_cutItemsCache; }; -- cgit v1.3