From dde6f0a0772eee324e2838ba4a076a83193f163c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 4 Dec 2006 06:37:20 +0000 Subject: 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 --- src/viewproperties.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/viewproperties.h') 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 -- cgit v1.3