4#include <QSortFilterProxyModel>
13 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder)
override;
22 bool lessThan(
const QModelIndex& left,
const QModelIndex& right)
const override;
25 int updatedSortNdx()
const;
28 Qt::SortOrder _currSortOrder;
29 bool _filterActive =
false;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override
Function compares two items while sorting table view.
Definition sortmodel.cpp:14
bool isFilterActive() const
Definition sortmodel.cpp:45
void setFilterActive(bool enabled)
Definition sortmodel.cpp:50
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder) override
Definition sortmodel.cpp:55