diff options
| author | Peter Penz <[email protected]> | 2006-12-20 20:50:32 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-20 20:50:32 +0000 |
| commit | b0b162135dce2c6f5a7687a2928afb24a5b613ec (patch) | |
| tree | fd91ddc0c566918fbfe5b15249ff489a2b234a58 /src/viewproperties.h | |
| parent | 642110309ace0ec0da270615464d7d04944d5dcf (diff) | |
- Performance optimization in DolphinView::loadDirectory() (don't store the view properties for each property individually)
- Get rid of methods which are not used anymore due to moving to KDirModel.
- Respect GeneralSettings::globalViewProps() setting when storing view properties.
svn path=/trunk/playground/utils/dolphin/; revision=615255
Diffstat (limited to 'src/viewproperties.h')
| -rw-r--r-- | src/viewproperties.h | 17 |
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: |
