diff options
| author | Emmanuel Pescosta <[email protected]> | 2013-08-16 20:22:33 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2013-08-16 20:22:33 +0200 |
| commit | 804e83f893d04ce4bed150d4e6bd39db2374d878 (patch) | |
| tree | 0968119e2ca88219d531bd8f5640ca273a8bba24 /src/dolphinnewfilemenu.h | |
| parent | b6477f4e653dc6f04a7413cd1c353fb486421526 (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.h | 9 |
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 |
