diff options
| author | Peter Penz <[email protected]> | 2012-05-16 23:11:56 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-05-16 23:13:55 +0200 |
| commit | 3e2cf9721b7b9726af37d679d1afd6eaf306ad29 (patch) | |
| tree | b9fb21425d837904918f038773368d0941b6d28a /src/views/viewproperties.h | |
| parent | 2fd31c8a95eaa38defa0f6adf3b83b12fc1aa1a3 (diff) | |
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).
Diffstat (limited to 'src/views/viewproperties.h')
| -rw-r--r-- | src/views/viewproperties.h | 20 |
1 files changed, 14 insertions, 6 deletions
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: |
