diff options
| author | Rahman Duran <[email protected]> | 2009-03-25 22:00:50 +0000 |
|---|---|---|
| committer | Rahman Duran <[email protected]> | 2009-03-25 22:00:50 +0000 |
| commit | bd2f7179de1b42399b5f04ef65221e8e81250392 (patch) | |
| tree | 3ed1e361a19414eeb5049c2c079e161a5d9ebb0c /src/dolphinviewactionhandler.cpp | |
| parent | 750bb9e12c9ef1ef85e93535e619f91f17ae04cc (diff) | |
BUG: 175658
GUI:
The remote encoding code adapted from Konqueror to Dolphin. Now user can change
encoding for remote urls like ftp. Konqueror doesn't use
KRemoteEncodingPlugin anymore. Instead, this feature is supplied to
Konqueror via DolphinPart.
svn path=/trunk/KDE/kdebase/apps/; revision=944659
Diffstat (limited to 'src/dolphinviewactionhandler.cpp')
| -rw-r--r-- | src/dolphinviewactionhandler.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/dolphinviewactionhandler.cpp b/src/dolphinviewactionhandler.cpp index 748856275..404c6eae0 100644 --- a/src/dolphinviewactionhandler.cpp +++ b/src/dolphinviewactionhandler.cpp @@ -22,7 +22,6 @@ #include "settings/viewpropertiesdialog.h" #include "dolphinview.h" #include "zoomlevelinfo.h" - #include <konq_operations.h> #include <kaction.h> @@ -32,6 +31,7 @@ #include <krun.h> #include <kpropertiesdialog.h> + DolphinViewActionHandler::DolphinViewActionHandler(KActionCollection* collection, QObject* parent) : QObject(parent), m_actionCollection(collection), @@ -68,6 +68,11 @@ void DolphinViewActionHandler::setCurrentView(DolphinView* view) this, SLOT(slotZoomLevelChanged(int))); } +DolphinView* DolphinViewActionHandler::currentView() +{ + return m_currentView; +} + void DolphinViewActionHandler::createActions() { // This action doesn't appear in the GUI, it's for the shortcut only. @@ -340,6 +345,11 @@ QString DolphinViewActionHandler::currentViewModeActionName() const return QString(); // can't happen } +KActionCollection* DolphinViewActionHandler::actionCollection() +{ + return m_actionCollection; +} + void DolphinViewActionHandler::updateViewActions() { QAction* viewModeAction = m_actionCollection->action(currentViewModeActionName()); |
