]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/viewproperties.cpp
Expose the new file item property pathorurl to the Dolphin UI. This is mostly useful...
[dolphin.git] / src / viewproperties.cpp
index 3a2bb1fc15607b0bf1942f665058ac3730a65358..d78fdd4f5882b3dda1e11718adbb0b399dd1492d 100644 (file)
@@ -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;
 }