┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-01-21 14:16:31 +0000
committerPeter Penz <[email protected]>2008-01-21 14:16:31 +0000
commit1daef0dc52a18b03e2bc5b4ce85944356b6b5da3 (patch)
tree7598d62b33b41758e83daaa035d29de3c8a03a9b /src/dolphinmainwindow.cpp
parent37d4fa2d15d9a629298b1c4f93a50db5c2d607b2 (diff)
Cleanup: let the DolphinView be aware about the used action collection. This will allow us cleaning up some code in DolphinMainWindow and will make it easier sharing code with DolphinPart.
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=764347
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 1157124f9..e0386467e 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -59,7 +59,6 @@
#include <kmenu.h>
#include <kmenubar.h>
#include <kmessagebox.h>
-#include <konq_operations.h>
#include <konqmimedata.h>
#include <kpropertiesdialog.h>
#include <kprotocolinfo.h>
@@ -423,12 +422,6 @@ void DolphinMainWindow::readProperties(const KConfigGroup& group)
}
}
-void DolphinMainWindow::createDir()
-{
- const KUrl& url = m_activeViewContainer->view()->url();
- KonqOperations::newDir(this, url);
-}
-
void DolphinMainWindow::updateNewMenu()
{
m_newMenu->slotCheckUpToDate();
@@ -992,13 +985,6 @@ void DolphinMainWindow::setupActions()
connect(menu, SIGNAL(aboutToShow()),
this, SLOT(updateNewMenu()));
- // This action doesn't appear in the GUI, it's for the shortcut only.
- // KNewMenu takes care of the GUI stuff.
- KAction* newDirAction = actionCollection()->addAction("create_dir");
- newDirAction->setText(i18n("Create Folder..."));
- connect(newDirAction, SIGNAL(triggered()), SLOT(createDir()));
- newDirAction->setShortcut(Qt::Key_F10);
-
KAction* newWindow = actionCollection()->addAction("new_window");
newWindow->setIcon(KIcon("window-new"));
newWindow->setText(i18nc("@action:inmenu File", "New &Window"));