From 01761798a93bc93f3e16f8fb68fe5739ab66d98b Mon Sep 17 00:00:00 2001 From: Dawit Alemayehu Date: Sat, 9 Feb 2013 15:56:51 -0500 Subject: - Factored out the Delete/Move To Trash action into own class. - Updated both the Dolphin KPart and context menu to use the new DolphinRemoveAction class to manage "Delete/Move to Trash" actions. See also https://git.reviewboard.kde.org/r/107509/. REVIEW: 108802 --- src/dolphinpart.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dolphinpart.h') diff --git a/src/dolphinpart.h b/src/dolphinpart.h index 7881ded43..172bfafc6 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -39,6 +39,7 @@ class DolphinModel; class KDirLister; class DolphinView; class KAboutData; +class DolphinRemoveAction; class DolphinPart : public KParts::ReadOnlyPart { @@ -227,6 +228,8 @@ private Q_SLOTS: void setFilesToSelect(const KUrl::List& files); KUrl::List filesToSelect() const { return KUrl::List(); } // silence moc + virtual bool eventFilter(QObject*, QEvent*); + private: void createActions(); void createGoAction(const char* name, const char* iconName, @@ -245,6 +248,7 @@ private: KAction* m_findFileAction; KAction* m_openTerminalAction; QString m_nameFilter; + DolphinRemoveAction* m_removeAction; Q_DISABLE_COPY(DolphinPart) }; -- cgit v1.3