From a4ef4bbfdebad708e4b3c772c1ce3e236a4da145 Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Wed, 28 Aug 2013 18:46:45 +0200 Subject: 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 --- src/dolphincontextmenu.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/dolphincontextmenu.h') diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index c9840eae5..180f91787 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -95,9 +95,6 @@ protected: virtual void keyPressEvent(QKeyEvent *ev); virtual void keyReleaseEvent(QKeyEvent *ev); -signals: - void errorMessage(const QString& error); - private: void openTrashContextMenu(); void openTrashItemContextMenu(); -- cgit v1.3