diff options
| author | Peter Penz <[email protected]> | 2007-03-22 19:25:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-03-22 19:25:44 +0000 |
| commit | ae338af47408467c6ba481ff015ef18ad401f046 (patch) | |
| tree | e053a553a68b65070caf737470b9b0f7dfa24758 /src/dolphinview.h | |
| parent | e74cc60fefbbbe5452c1fa069a59f2cac1ec4c1b (diff) | |
improve the handling when applying item effects to cut items
svn path=/trunk/KDE/kdebase/apps/; revision=645516
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 20 |
1 files changed, 17 insertions, 3 deletions
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<CutItem> m_cutItemsCache; }; #endif // _DOLPHINVIEW_H_ |
