From 6a096cca2d9a3b10bf3874a967b9e2b66c7b748c Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Tue, 11 May 2010 21:02:49 +0000 Subject: Expose the new file item property pathorurl to the Dolphin UI. This is mostly useful for search results to see the actual local path of the result. svn path=/trunk/KDE/kdebase/apps/; revision=1125631 --- src/dolphinviewactionhandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dolphinviewactionhandler.cpp') diff --git a/src/dolphinviewactionhandler.cpp b/src/dolphinviewactionhandler.cpp index 2bbdec013..ab28dca26 100644 --- a/src/dolphinviewactionhandler.cpp +++ b/src/dolphinviewactionhandler.cpp @@ -249,6 +249,11 @@ QActionGroup* DolphinViewActionHandler::createAdditionalInformationActionGroup() showMimeInfo->setData(KFileItemDelegate::FriendlyMimeType); showMimeInfo->setActionGroup(additionalInfoGroup); + KToggleAction* showPathOrUrlInfo = m_actionCollection->add("show_path_or_url_info"); + showPathOrUrlInfo->setText(i18nc("@action:inmenu Additional information", "Path")); + showPathOrUrlInfo->setData(KFileItemDelegate::LocalPathOrUrl); + showPathOrUrlInfo->setActionGroup(additionalInfoGroup); + return additionalInfoGroup; } -- cgit v1.3