]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.cpp
Expose the new file item property pathorurl to the Dolphin UI. This is mostly useful...
[dolphin.git] / src / dolphinview.cpp
index 79191c52caf32d5b45553b910f9eb2247d09252f..5ad77f72618120557fb6ecf8bc78a19c4e996335 100644 (file)
@@ -980,6 +980,7 @@ void DolphinView::updateAdditionalInfoActions(KActionCollection* collection)
     QAction* showOwnerInfo = collection->action("show_owner_info");
     QAction* showGroupInfo = collection->action("show_group_info");
     QAction* showMimeInfo = collection->action("show_mime_info");
+    QAction* showPathOrUrlInfo = collection->action("show_path_or_url_info");
 
     showSizeInfo->setChecked(false);
     showDateInfo->setChecked(false);
@@ -987,6 +988,7 @@ void DolphinView::updateAdditionalInfoActions(KActionCollection* collection)
     showOwnerInfo->setChecked(false);
     showGroupInfo->setChecked(false);
     showMimeInfo->setChecked(false);
+    showPathOrUrlInfo->setChecked(false);
 
     showSizeInfo->setEnabled(enable);
     showDateInfo->setEnabled(enable);
@@ -994,6 +996,7 @@ void DolphinView::updateAdditionalInfoActions(KActionCollection* collection)
     showOwnerInfo->setEnabled(enable);
     showGroupInfo->setEnabled(enable);
     showMimeInfo->setEnabled(enable);
+    showPathOrUrlInfo->setEnabled(enable);
 
     foreach (KFileItemDelegate::Information info, m_viewAccessor.itemDelegate()->showInformation()) {
         switch (info) {
@@ -1015,6 +1018,9 @@ void DolphinView::updateAdditionalInfoActions(KActionCollection* collection)
         case KFileItemDelegate::FriendlyMimeType:
             showMimeInfo->setChecked(true);
             break;
+        case KFileItemDelegate::LocalPathOrUrl:
+            showPathOrUrlInfo->setChecked(true);
+            break;
         default:
             break;
         }