┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewproperties.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewproperties.h')
-rw-r--r--src/viewproperties.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/viewproperties.h b/src/viewproperties.h
index a98800407..992429241 100644
--- a/src/viewproperties.h
+++ b/src/viewproperties.h
@@ -66,10 +66,27 @@ public:
void setSortOrder(Qt::SortOrder sortOrder);
Qt::SortOrder sortOrder() const;
+ /**
+ * If \a autoSave is true, the properties are automatically
+ * saved when the destructor is called. Per default autosaving
+ * is enabled.
+ */
void setAutoSaveEnabled(bool autoSave);
bool isAutoSaveEnabled() const;
void updateTimeStamp();
+
+ /**
+ * Saves the view properties for the directory specified
+ * in the constructor. The method is automatically
+ * invoked in the destructor, if
+ * ViewProperties::isAutoSaveEnabled() returns true.
+ *
+ * Note that the saving of the properties will be ignored
+ * if GeneralSettings::globalViewProps() returns true: in
+ * this case view properties may not be remembered for
+ * each directory.
+ */
void save();
private: