KItemViews
kcategorizedsortfilterproxymodel.cpp
57void KCategorizedSortFilterProxyModel::setSortCategoriesByNaturalComparison(bool sortCategoriesByNaturalComparison)
73bool KCategorizedSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
88bool KCategorizedSortFilterProxyModel::subSortLessThan(const QModelIndex &left, const QModelIndex &right) const
93int KCategorizedSortFilterProxyModel::compareCategories(const QModelIndex &left, const QModelIndex &right) const
virtual int compareCategories(const QModelIndex &left, const QModelIndex &right) const
This method compares the category of the left index with the category of the right index.
Definition kcategorizedsortfilterproxymodel.cpp:93
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder) override
Overridden from QSortFilterProxyModel.
Definition kcategorizedsortfilterproxymodel.cpp:23
virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const
This method has a similar purpose as lessThan() has on QSortFilterProxyModel.
Definition kcategorizedsortfilterproxymodel.cpp:88
void setSortCategoriesByNaturalComparison(bool sortCategoriesByNaturalComparison)
Set if the sorting using CategorySortRole will use a natural comparison in the case that strings were...
Definition kcategorizedsortfilterproxymodel.cpp:57
bool sortCategoriesByNaturalComparison() const
Definition kcategorizedsortfilterproxymodel.cpp:68
Qt::SortOrder sortOrder() const
Definition kcategorizedsortfilterproxymodel.cpp:52
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
Overridden from QSortFilterProxyModel.
Definition kcategorizedsortfilterproxymodel.cpp:73
int sortColumn() const
Definition kcategorizedsortfilterproxymodel.cpp:47
@ CategorySortRole
This role is used for sorting categories.
Definition kcategorizedsortfilterproxymodel.h:44
bool isCategorizedModel() const
Definition kcategorizedsortfilterproxymodel.cpp:31
void setCategorizedModel(bool categorizedModel)
Enables or disables the categorization feature.
Definition kcategorizedsortfilterproxymodel.cpp:36
QString
void invalidate()
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const const
virtual void sort(int column, Qt::SortOrder order) override
SortOrder
bool isValid() const const
qlonglong toLongLong(bool *ok) const const
QString toString() const const
int userType() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 6 2024 11:59:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Sep 6 2024 11:59:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.