25#include <QSortFilterProxyModel>
45 using SortFunction = std::function<bool(
const QModelIndex &,
const QModelIndex &)>;
51 bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const override;
The KSortFilterProxyModel is a QSortFilterProxyModel that allows custom sorting.
Definition ksortfilterproxymodel.h:39
std::function< bool(const QModelIndex &, const QModelIndex &)> SortFunction
Definition ksortfilterproxymodel.h:45
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
KSortFilterProxyModel(QObject *parent=nullptr)
void setSortFunction(SortFunction fn)
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28