┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinnewfilemenu.h
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2013-08-16 20:22:33 +0200
committerEmmanuel Pescosta <[email protected]>2013-08-16 20:22:33 +0200
commit804e83f893d04ce4bed150d4e6bd39db2374d878 (patch)
tree0968119e2ca88219d531bd8f5640ca273a8bba24 /src/dolphinnewfilemenu.h
parentb6477f4e653dc6f04a7413cd1c353fb486421526 (diff)
Cut the ropes between DolphinMainWindow and DolphinNewFileMenu. Error handling is now done via signals.
REVIEW: 111989
Diffstat (limited to 'src/dolphinnewfilemenu.h')
-rw-r--r--src/dolphinnewfilemenu.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/dolphinnewfilemenu.h b/src/dolphinnewfilemenu.h
index 0d336080b..ae5881366 100644
--- a/src/dolphinnewfilemenu.h
+++ b/src/dolphinnewfilemenu.h
@@ -23,7 +23,6 @@
#include <KNewFileMenu>
-class DolphinMainWindow;
class KJob;
/**
@@ -39,15 +38,15 @@ class DolphinNewFileMenu : public KNewFileMenu
Q_OBJECT
public:
- DolphinNewFileMenu(DolphinMainWindow* parent);
+ DolphinNewFileMenu(KActionCollection* collection, QObject* parent);
virtual ~DolphinNewFileMenu();
+signals:
+ void errorMessage(const QString& error);
+
protected slots:
/** @see KNewFileMenu::slotResult() */
virtual void slotResult(KJob* job);
-
-private:
- DolphinMainWindow* m_mainWin;
};
#endif