diff options
| author | David Faure <[email protected]> | 2008-01-21 19:08:52 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2008-01-21 19:08:52 +0000 |
| commit | c00478bbc1001d10dcfc04e9b0ea251620837e85 (patch) | |
| tree | 59d238add8e6b240e672bf039fc9ec5fc58c7e1b /src/dolphinpart.cpp | |
| parent | f9aeb825c605ec4ca8b95aae0be1b441ca8ceb91 (diff) | |
Revert the moving of the action to the DolphinView instance, this doesn't work with splitted views.
(Each view would need its own action collection, but then DolphinView would have to become
a KXMLGUIClient, and the GUI would flicker when switching views).
Instead, use the same solution as the other shared actions: static method in DolphinView (for now),
slot in the mainwindow (and for the more complex actions than this one, shared code in DolphinView)
svn path=/branches/KDE/4.0/kdebase/apps/; revision=764429
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 235f176cd..2c4c1eaa3 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -70,8 +70,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QStringLi KUrl(), m_dirLister, m_dolphinModel, - m_proxyModel, - actionCollection()); + m_proxyModel); setWidget(m_view); setXMLFile("dolphinpart.rc"); @@ -147,6 +146,9 @@ void DolphinPart::createActions() // Go menu + KAction* newDirAction = DolphinView::createNewDirAction(actionCollection()); + connect(newDirAction, SIGNAL(triggered()), SLOT(createDir())); + QActionGroup* goActionGroup = new QActionGroup(this); connect(goActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(slotGoTriggered(QAction*))); @@ -424,4 +426,9 @@ void DolphinPart::slotProperties() } } +void DolphinPart::createDir() +{ + KonqOperations::newDir(m_view, url()); +} + #include "dolphinpart.moc" |
