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/viewproperties.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/viewproperties.cpp') diff --git a/src/viewproperties.cpp b/src/viewproperties.cpp index 3a2bb1fc1..d78fdd4f5 100644 --- a/src/viewproperties.cpp +++ b/src/viewproperties.cpp @@ -212,6 +212,9 @@ void ViewProperties::setAdditionalInfo(KFileItemDelegate::InformationList list) case KFileItemDelegate::FriendlyMimeType: info = info | TypeInfo; break; + case KFileItemDelegate::LocalPathOrUrl: + info = info | PathOrUrlInfo; + break; default: break; } @@ -247,6 +250,9 @@ KFileItemDelegate::InformationList ViewProperties::additionalInfo() const if (info & TypeInfo) { list.append(KFileItemDelegate::FriendlyMimeType); } + if (info & PathOrUrlInfo) { + list.append(KFileItemDelegate::LocalPathOrUrl); + } return list; } -- cgit v1.3