diff options
| author | Gaston Haro <[email protected]> | 2021-08-01 13:00:05 -0400 |
|---|---|---|
| committer | Zren (Chris Holland) <[email protected]> | 2021-08-05 12:55:01 +0000 |
| commit | 50149d6abb8a0a978db3c6afb5238bc42a4a89c8 (patch) | |
| tree | 26889c44b339ef9fc83a914525afdcc3c94499f8 /src/kitemviews/kfileitemmodel.h | |
| parent | 2b90a13c62ba9fe8d15377b7811ac6e0ec26b3c4 (diff) | |
Configurable Show hidden files and folders last toggle
CCBUG: 241227
Revision: https://phabricator.kde.org/D29115
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index acf4b761c..33838853d 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -80,6 +80,12 @@ public: void setSortDirectoriesFirst(bool dirsFirst); bool sortDirectoriesFirst() const; + /** + * Sets a separate sorting with hidden files and folders last (true) or not (false). + */ + void setSortHiddenLast(bool hiddenLast); + bool sortHiddenLast() const; + void setShowHiddenFiles(bool show); bool showHiddenFiles() const; @@ -463,6 +469,7 @@ private: QCollator m_collator; bool m_naturalSorting; bool m_sortDirsFirst; + bool m_sortHiddenLast; RoleType m_sortRole; int m_sortingProgressPercent; // Value of directorySortingProgress() signal |
