]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/additionalinfoaccessor.h
The &-shortcut from another action is not set until the action has been shown at...
[dolphin.git] / src / views / additionalinfoaccessor.h
index 0a3d51459aa245f02accce45152f0aa4bafcbb94..b3d564088618200679d49733548d457b6cbb2405 100644 (file)
@@ -71,10 +71,18 @@ public:
 
     QString translation(KFileItemDelegate::Information info) const;
 
+    /**
+     * @return String representation of the value that is stored in the .directory
+     *         by ViewProperties.
+     */
+    QString value(KFileItemDelegate::Information info) const;
+
     DolphinView::Sorting sorting(KFileItemDelegate::Information info) const;
 
     /**
      * @return Bitvalue for \p info that is stored in a ViewProperties instance.
+     *         Is required only for backward compatibility with the version 1 of
+     *         the view-properties.
      */
     int bitValue(KFileItemDelegate::Information info) const;
 
@@ -88,11 +96,12 @@ private:
         const char* const actionCollectionName;
         const char* const context;
         const char* const translation;
+        const char* const value;
         const DolphinView::Sorting sorting;
-        const int bitValue;
+        const int bitValue; // for backward compatibility with version 1 of view-properties
     };
 
-    KFileItemDelegate::InformationList m_informations;
+    KFileItemDelegate::InformationList m_information;
     QMap<KFileItemDelegate::Information, const AdditionalInfo*> m_map;
 };