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/dolphinnewfilemenu.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/dolphinnewfilemenu.h')
| -rw-r--r-- | src/dolphinnewfilemenu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinnewfilemenu.h b/src/dolphinnewfilemenu.h index ae5881366..e211dfd88 100644 --- a/src/dolphinnewfilemenu.h +++ b/src/dolphinnewfilemenu.h @@ -23,6 +23,8 @@ #include <KNewFileMenu> +#include "libdolphin_export.h" + class KJob; /** @@ -33,7 +35,7 @@ class KJob; * All errors are shown in the status bar of Dolphin * instead as modal error dialog with an OK button. */ -class DolphinNewFileMenu : public KNewFileMenu +class LIBDOLPHINPRIVATE_EXPORT DolphinNewFileMenu : public KNewFileMenu { Q_OBJECT |
