diff options
| author | Peter Penz <[email protected]> | 2008-06-30 16:37:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-30 16:37:08 +0000 |
| commit | 3bc3ca1458b14943526f1118057c93c0c3175f32 (patch) | |
| tree | a4feaedb93e8b8bed90c0eb47d9b96989399dad8 /src/dolphinviewactionhandler.cpp | |
| parent | 823b033ab78a26ecaa707136b4618b0db34d3360 (diff) | |
Move the "Find File..." action from DolphinMainWindow to DolphinViewActionHandler, so that is used in DolphinPart and hence also in Konqueror. Thanks to Bram for the patch!
CCMAIL: [email protected]
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=826383
Diffstat (limited to 'src/dolphinviewactionhandler.cpp')
| -rw-r--r-- | src/dolphinviewactionhandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dolphinviewactionhandler.cpp b/src/dolphinviewactionhandler.cpp index b606c33ea..3c42ff1ae 100644 --- a/src/dolphinviewactionhandler.cpp +++ b/src/dolphinviewactionhandler.cpp @@ -28,6 +28,7 @@ #include <kactioncollection.h> #include <klocale.h> #include <ktoggleaction.h> +#include <krun.h> DolphinViewActionHandler::DolphinViewActionHandler(KActionCollection* collection, QObject* parent) : QObject(parent), @@ -146,6 +147,14 @@ void DolphinViewActionHandler::createActions() KAction* adjustViewProps = m_actionCollection->addAction("view_properties"); adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties...")); connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(slotAdjustViewProperties())); + + // Tools menu + + QAction* findFile = m_actionCollection->addAction("find_file"); + findFile->setText(i18nc("@action:inmenu Tools", "Find File...")); + findFile->setShortcut(Qt::CTRL | Qt::Key_F); + findFile->setIcon(KIcon("edit-find")); + connect(findFile, SIGNAL(triggered()), this, SLOT(slotFindFile())); } QActionGroup* DolphinViewActionHandler::createAdditionalInformationActionGroup() @@ -492,3 +501,8 @@ void DolphinViewActionHandler::slotAdjustViewProperties() ViewPropertiesDialog dlg(m_currentView); dlg.exec(); } + +void DolphinViewActionHandler::slotFindFile() +{ + KRun::run("kfind", m_currentView->url(), m_currentView->window()); +} |
