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/viewproperties.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/viewproperties.cpp')
| -rw-r--r-- | src/viewproperties.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |
