From ae338af47408467c6ba481ff015ef18ad401f046 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 22 Mar 2007 19:25:44 +0000 Subject: improve the handling when applying item effects to cut items svn path=/trunk/KDE/kdebase/apps/; revision=645516 --- src/dolphinview.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index e00cc98f2..c2d0a1cc8 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -353,9 +353,6 @@ public slots: */ void requestActivation(); - /** Applies an item effect to all cut items of the clipboard. */ - void updateCutItems(); - signals: /** Is emitted if URL of the view has been changed to \a url. */ void urlChanged(const KUrl& url); @@ -496,6 +493,9 @@ private slots: */ void updateActivationState(); + /** Applies an item effect to all cut items of the clipboard. */ + void updateCutItems(); + private: void startDirLister(const KUrl& url, bool reload = false); @@ -541,7 +541,19 @@ private: */ bool isCutItem(const KFileItem& item) const; + /** Applies an item effect to all cut items. */ + void applyCutItemEffect(); + private: + /** + * Remembers the original pixmap for an item before + * the cut effect is applied. + */ + struct CutItem { + KUrl url; + QPixmap pixmap; + }; + bool m_showProgress; bool m_blockContentsMovedSignal; Mode m_mode; @@ -565,6 +577,8 @@ private: KDirModel* m_dirModel; DolphinDirLister* m_dirLister; DolphinSortFilterProxyModel* m_proxyModel; + + QList m_cutItemsCache; }; #endif // _DOLPHINVIEW_H_ -- cgit v1.3