class KDirSortFilterProxyModel |
|
|
Acts as proxy model for KDirModel to sort and filter KFileItems. A natural sorting is done. This means that items like: - item_10.png - item_1.png - item_2.png are sorted like - item_1.png - item_2.png - item_10.png It is assured that directories are always sorted before files. Don't use it with non-KDirModel derivatives. Author Dominic Battre, Martin Pool and Peter Penz |
|
|
Reimplemented from QAbstractItemModel. Returns true for 'empty' directories so they can be populated later. |
|
Reimplemented from QAbstractItemModel. Returns true for directories. |
|
Reimplemented from QAbstractItemModel to use naturalCompare. |
|
Does a natural comparing of the strings. -1 is returned if a is smaller than b. +1 is returned if a is greater than b. 0 is returned if both values are equal. |