diff options
| author | Sebastian Trueg <[email protected]> | 2010-05-11 21:02:49 +0000 |
|---|---|---|
| committer | Sebastian Trueg <[email protected]> | 2010-05-11 21:02:49 +0000 |
| commit | 6a096cca2d9a3b10bf3874a967b9e2b66c7b748c (patch) | |
| tree | 83720a8b9f7ee93e7608228dcbc5d222480b65ec /src/dolphinviewactionhandler.cpp | |
| parent | 7e74c6f23beb06b9541508b91914a4f9b3ee3a62 (diff) | |
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
Diffstat (limited to 'src/dolphinviewactionhandler.cpp')
| -rw-r--r-- | src/dolphinviewactionhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<KToggleAction>("show_path_or_url_info"); + showPathOrUrlInfo->setText(i18nc("@action:inmenu Additional information", "Path")); + showPathOrUrlInfo->setData(KFileItemDelegate::LocalPathOrUrl); + showPathOrUrlInfo->setActionGroup(additionalInfoGroup); + return additionalInfoGroup; } |
