Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/kfileitemmodel.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
---|---|---|---|---|---|
88 | 88 | | |||
89 | /** | 89 | /** | ||
90 | * Sets a separate sorting with directories first (true) or a mixed | 90 | * Sets a separate sorting with directories first (true) or a mixed | ||
91 | * sorting of files and directories (false). | 91 | * sorting of files and directories (false). | ||
92 | */ | 92 | */ | ||
93 | void setSortDirectoriesFirst(bool dirsFirst); | 93 | void setSortDirectoriesFirst(bool dirsFirst); | ||
94 | bool sortDirectoriesFirst() const; | 94 | bool sortDirectoriesFirst() const; | ||
95 | 95 | | |||
96 | /** | ||||
97 | * Sets a separate sorting with hidden files and folders last (true) or not (false). | ||||
98 | */ | ||||
99 | void setSortHiddenLast(bool hiddenLast); | ||||
100 | bool sortHiddenLast() const; | ||||
101 | | ||||
96 | void setShowHiddenFiles(bool show); | 102 | void setShowHiddenFiles(bool show); | ||
97 | bool showHiddenFiles() const; | 103 | bool showHiddenFiles() const; | ||
98 | 104 | | |||
99 | /** | 105 | /** | ||
100 | * If set to true, only directories are shown as items of the model. Files | 106 | * If set to true, only directories are shown as items of the model. Files | ||
101 | * are ignored. | 107 | * are ignored. | ||
102 | */ | 108 | */ | ||
103 | void setShowDirectoriesOnly(bool enabled); | 109 | void setShowDirectoriesOnly(bool enabled); | ||
▲ Show 20 Lines • Show All 361 Lines • ▼ Show 20 Line(s) | 289 | private: | |||
465 | bool isConsistent() const; | 471 | bool isConsistent() const; | ||
466 | 472 | | |||
467 | private: | 473 | private: | ||
468 | KFileItemModelDirLister* m_dirLister; | 474 | KFileItemModelDirLister* m_dirLister; | ||
469 | 475 | | |||
470 | QCollator m_collator; | 476 | QCollator m_collator; | ||
471 | bool m_naturalSorting; | 477 | bool m_naturalSorting; | ||
472 | bool m_sortDirsFirst; | 478 | bool m_sortDirsFirst; | ||
479 | bool m_sortHiddenLast; | ||||
473 | 480 | | |||
474 | RoleType m_sortRole; | 481 | RoleType m_sortRole; | ||
475 | int m_sortingProgressPercent; // Value of directorySortingProgress() signal | 482 | int m_sortingProgressPercent; // Value of directorySortingProgress() signal | ||
476 | QSet<QByteArray> m_roles; | 483 | QSet<QByteArray> m_roles; | ||
477 | 484 | | |||
478 | QList<ItemData*> m_itemData; | 485 | QList<ItemData*> m_itemData; | ||
479 | 486 | | |||
480 | // m_items is a cache for the method index(const QUrl&). If it contains N | 487 | // m_items is a cache for the method index(const QUrl&). If it contains N | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |