]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinnewfilemenuobserver.cpp
normalize signals/slots
[dolphin.git] / src / views / dolphinnewfilemenuobserver.cpp
index baddc16e3a9d19aff5876f2f9ed39ad80665ec70..1cb5739d796f55d164185385b1475c824a710d37 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2009 by Peter Penz <peter.penz@gmx.at>                  *
+ *   Copyright (C) 2009 by Peter Penz <peter.penz19@gmail.com>             *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
@@ -20,7 +20,7 @@
 #include "dolphinnewfilemenuobserver.h"
 
 #include <KGlobal>
-#include <knewmenu.h>
+#include <KNewFileMenu>
 
 class DolphinNewFileMenuObserverSingleton
 {
@@ -36,18 +36,18 @@ DolphinNewFileMenuObserver& DolphinNewFileMenuObserver::instance()
 
 void DolphinNewFileMenuObserver::attach(const KNewFileMenu* menu)
 {
-    connect(menu, SIGNAL(fileCreated(const KUrl&)),
-            this, SIGNAL(itemCreated(const KUrl&)));
-    connect(menu, SIGNAL(directoryCreated(const KUrl&)),
-            this, SIGNAL(itemCreated(const KUrl&)));
+    connect(menu, SIGNAL(fileCreated(KUrl)),
+            this, SIGNAL(itemCreated(KUrl)));
+    connect(menu, SIGNAL(directoryCreated(KUrl)),
+            this, SIGNAL(itemCreated(KUrl)));
 }
 
 void DolphinNewFileMenuObserver::detach(const KNewFileMenu* menu)
 {
-    disconnect(menu, SIGNAL(fileCreated(const KUrl&)),
-               this, SIGNAL(itemCreated(const KUrl&)));
-    disconnect(menu, SIGNAL(directoryCreated(const KUrl&)),
-               this, SIGNAL(itemCreated(const KUrl&)));
+    disconnect(menu, SIGNAL(fileCreated(KUrl)),
+               this, SIGNAL(itemCreated(KUrl)));
+    disconnect(menu, SIGNAL(directoryCreated(KUrl)),
+               this, SIGNAL(itemCreated(KUrl)));
 }
 
 DolphinNewFileMenuObserver::DolphinNewFileMenuObserver() :