27 #ifndef DIGIKAM_DCATEGORIZED_SORT_FILTER_PROXY_MODEL_H
28 #define DIGIKAM_DCATEGORIZED_SORT_FILTER_PROXY_MODEL_H
32 #include <QSortFilterProxyModel>
68 CategoryDisplayRole = 0x17CE990A,
78 CategorySortRole = 0x27857E60
88 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
93 bool isCategorizedModel()
const;
100 void setCategorizedModel(
bool categorizedModel);
105 int sortColumn()
const;
110 Qt::SortOrder sortOrder()
const;
119 void setSortCategoriesByNaturalComparison(
bool sortCategoriesByNaturalComparison);
124 bool sortCategoriesByNaturalComparison()
const;
140 bool lessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
148 virtual bool subSortLessThan(
const QModelIndex& left,
const QModelIndex& right)
const;
185 virtual int compareCategories(
const QModelIndex& left,
const QModelIndex& right)
const;
205 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
Definition: dcategorizedsortfilterproxymodel.h:196
Definition: dcategorizedsortfilterproxymodel.h:53
AdditionalRoles
Definition: dcategorizedsortfilterproxymodel.h:59
Definition: datefolderview.cpp:43