diff options
| author | Peter Penz <[email protected]> | 2006-12-04 06:37:20 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2006-12-04 06:37:20 +0000 |
| commit | dde6f0a0772eee324e2838ba4a076a83193f163c (patch) | |
| tree | e138ffbf79a9e10ef555f854a1eb4d4e440b9298 /src/viewproperties.h | |
| parent | 45d82b30417ce8a747eab2baab7a5618a069bbfa (diff) | |
First step of cleaning up the view properties: inheriting of viewproperties does not work with the current approach of directoryviewpropertysettings.kcfg (2 nodes would be required for each directory, only one is used at the moment). Therefor the valid_for_subdirs property has been removed and the implementation model will be adjusted to match 1:1 to the users model. TODO: improve the viewpropertiesdialog be able to apply viewproperties recursively to sub directories.
svn path=/trunk/playground/utils/dolphin/; revision=610383
Diffstat (limited to 'src/viewproperties.h')
| -rw-r--r-- | src/viewproperties.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/viewproperties.h b/src/viewproperties.h index 98d5a94b2..7f57f2eed 100644 --- a/src/viewproperties.h +++ b/src/viewproperties.h @@ -50,7 +50,7 @@ class QFile; class ViewProperties { public: - ViewProperties(KUrl url); + ViewProperties(const KUrl& url); virtual ~ViewProperties(); void setViewMode(DolphinView::Mode mode); @@ -65,23 +65,21 @@ public: void setSortOrder(Qt::SortOrder sortOrder); Qt::SortOrder sortOrder() const; - void setValidForSubDirs(bool valid); - bool isValidForSubDirs() const; - void setAutoSaveEnabled(bool autoSave); bool isAutoSaveEnabled() const; void updateTimeStamp(); void save(); - ViewProperties& operator = (const ViewProperties& props); private: bool m_changedProps; bool m_autoSave; - bool m_subDirValidityHidden; QString m_filepath; ViewPropertySettings* m_node; + + ViewProperties(const ViewProperties& props); + ViewProperties& operator= (const ViewProperties& props); }; #endif |
