From 3e2cf9721b7b9726af37d679d1afd6eaf306ad29 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 May 2012 23:11:56 +0200 Subject: Provide default view properties for system-places For the "Recently Accessed"-places and "Search For"-places like documents, images, audio-files and videos proper default properties are created now (e.g. previews and images-sizes are shown when searching for "images" etc). --- src/views/viewproperties.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'src/views/viewproperties.h') diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index 97fb7cdba..b3d3070ed 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -118,13 +118,12 @@ public: void save(); /** - * Returns the URL of the directory, where the mirrored view properties - * are stored into. Mirrored view properties are used if: - * - there is no write access for storing the view properties into - * the original directory - * - for non local directories + * @return True if properties for the given URL exist: + * As soon as the properties for an URL have been saved with + * ViewProperties::save(), true will be returned. If false is + * returned, the default view-properties are used. */ - static KUrl mirroredDirectory(); + bool exist() const; private: /** @@ -165,6 +164,15 @@ private: */ static QString directoryHashForUrl(const KUrl& url); + /** + * Returns the URL of the directory, where the mirrored view properties + * are stored into. Mirrored view properties are used if: + * - there is no write access for storing the view properties into + * the original directory + * - for non local directories + */ + static KUrl mirroredDirectory(); + Q_DISABLE_COPY(ViewProperties) private: -- cgit v1.3