From 3bc3ca1458b14943526f1118057c93c0c3175f32 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 30 Jun 2008 16:37:08 +0000 Subject: 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: bramschoenmakers@kde.nl CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=826383 --- src/dolphinviewactionhandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphinviewactionhandler.cpp') 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 #include #include +#include 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()); +} -- cgit v1.3