diff options
| author | Dawit Alemayehu <[email protected]> | 2013-02-09 15:56:51 -0500 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2013-05-14 08:37:21 -0400 |
| commit | 01761798a93bc93f3e16f8fb68fe5739ab66d98b (patch) | |
| tree | cfb05f25aec9e46dc37bf9ee74ea4a01764f3a3d /src/dolphinpart.h | |
| parent | 799641859e92acacb33d0dc7c9eb659b651b0a18 (diff) | |
- 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
Diffstat (limited to 'src/dolphinpart.h')
| -rw-r--r-- | src/dolphinpart.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) }; |
