diff options
| author | Emmanuel Pescosta <[email protected]> | 2013-08-28 18:46:45 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2013-08-28 18:46:45 +0200 |
| commit | a4ef4bbfdebad708e4b3c772c1ce3e236a4da145 (patch) | |
| tree | 9789cf0b6eda0ae1dabd7e09233a9ca8189b521f /src/dolphinpart.h | |
| parent | cba24825c973ff422a84a71563ec7bc22c340088 (diff) | |
Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu.
Removed all signal-slot-connections related to DolphinNewFileMenu->errorMessage(QString)
in DolphinMainWindow and DolphinContextMenu and replaced it by a better solution.
Now we make use of the already existing DolphinNewFileMenuObserver singleton class to achieve a better
error handling, because every newly created DolphinContextMenu instance registers himself by DolphinNewFileMenuObserver
and we use this to connect the errorMessage(QString) signal of every DolphinContextMenu instance to the errorMessage(QString)
signal of the DolphinNewFileMenuObserver singleton class.
So we need only one connection from DolphinNewFileMenuObserver to DolphinMainWindow (or to DolphinPart) to
collect all error messages thrown by every DolphinNewFileMenu instance.
REVIEW: 112178
Diffstat (limited to 'src/dolphinpart.h')
| -rw-r--r-- | src/dolphinpart.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinpart.h b/src/dolphinpart.h index 172bfafc6..c70bc5a8d 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -26,7 +26,7 @@ #include <QItemSelectionModel> -class KNewFileMenu; +class DolphinNewFileMenu; class DolphinViewActionHandler; class QActionGroup; class KAction; @@ -244,7 +244,7 @@ private: DolphinViewActionHandler* m_actionHandler; DolphinRemoteEncoding* m_remoteEncoding; DolphinPartBrowserExtension* m_extension; - KNewFileMenu* m_newFileMenu; + DolphinNewFileMenu* m_newFileMenu; KAction* m_findFileAction; KAction* m_openTerminalAction; QString m_nameFilter; |
