]> cloud.milkyroute.net Git - dolphin.git/commit
Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 28 Aug 2013 16:46:45 +0000 (18:46 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 28 Aug 2013 16:46:45 +0000 (18:46 +0200)
commita4ef4bbfdebad708e4b3c772c1ce3e236a4da145
tree9789cf0b6eda0ae1dabd7e09233a9ca8189b521f
parentcba24825c973ff422a84a71563ec7bc22c340088
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/CMakeLists.txt
src/dolphincontextmenu.cpp
src/dolphincontextmenu.h
src/dolphinmainwindow.cpp
src/dolphinnewfilemenu.cpp
src/dolphinnewfilemenu.h
src/dolphinpart.cpp
src/dolphinpart.h
src/dolphinui.rc
src/views/dolphinnewfilemenuobserver.cpp
src/views/dolphinnewfilemenuobserver.h