X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8b4d3624ad1be3de678cc5fcaa5a6baa43767914..6e7a5760b4d6fc3244fbc0fae2fbce6201603fda:/src/views/viewproperties.h diff --git a/src/views/viewproperties.h b/src/views/viewproperties.h index a9daafc87..29827c38b 100644 --- a/src/views/viewproperties.h +++ b/src/views/viewproperties.h @@ -38,7 +38,7 @@ class ViewPropertySettings; class DOLPHIN_EXPORT ViewProperties { public: - explicit ViewProperties(const QUrl& url); + explicit ViewProperties(const QUrl &url); virtual ~ViewProperties(); void setViewMode(DolphinView::Mode mode); @@ -53,7 +53,7 @@ public: void setGroupedSorting(bool grouped); bool groupedSorting() const; - void setSortRole(const QByteArray& role); + void setSortRole(const QByteArray &role); QByteArray sortRole() const; void setSortOrder(Qt::SortOrder sortOrder); @@ -62,12 +62,15 @@ public: void setSortFoldersFirst(bool foldersFirst); bool sortFoldersFirst() const; + void setSortHiddenLast(bool hiddenLast); + bool sortHiddenLast() const; + /** * Sets the additional information for the current set view-mode. * Note that the additional-info property is the only property where * the value is dependent from another property (in this case the view-mode). */ - void setVisibleRoles(const QList& info); + void setVisibleRoles(const QList &info); /** * Returns the additional information for the current set view-mode. @@ -76,7 +79,7 @@ public: */ QList visibleRoles() const; - void setHeaderColumnWidths(const QList& widths); + void setHeaderColumnWidths(const QList &widths); QList headerColumnWidths() const; /** @@ -84,7 +87,7 @@ public: * show hidden files, sorting and sort order like * set in \a props. */ - void setDirProperties(const ViewProperties& props); + void setDirProperties(const ViewProperties &props); /** * If \a autoSave is true, the properties are automatically @@ -119,7 +122,7 @@ private: * properties are stored. \a subDir specifies the used sub * directory. */ - QString destinationDir(const QString& subDir) const; + QString destinationDir(const QString &subDir) const; /** * Returns the view-mode prefix when storing additional properties for @@ -150,7 +153,7 @@ private: /** * Returns true, if \a filePath is part of the home-path (see QDir::homePath()). */ - static bool isPartOfHome(const QString& filePath); + static bool isPartOfHome(const QString &filePath); /** * @return A hash-value for an URL that can be used as directory name. @@ -164,7 +167,7 @@ private: bool m_changedProps; bool m_autoSave; QString m_filePath; - ViewPropertySettings* m_node; + ViewPropertySettings *m_node; }; #endif