indexsorter.h
1 #ifndef INDEXSORTER_H 2 #define INDEXSORTER_H 3 4 #include "sorters/sorter.h" 5 6 class IndexSorter : public qqsfpm::Sorter 7 { 8 public: 9 using qqsfpm::Sorter::Sorter; 10 int compare(const QModelIndex& sourceLeft, const QModelIndex& sourceRight, const qqsfpm::QQmlSortFilterProxyModel& proxyModel) const override; 11 }; 12 13 class ReverseIndexSorter : public qqsfpm::Sorter 14 { 15 public: 16 using qqsfpm::Sorter::Sorter; 17 int compare(const QModelIndex& sourceLeft, const QModelIndex& sourceRight, const qqsfpm::QQmlSortFilterProxyModel& proxyModel) const override; 18 }; 19 20 #endif // INDEXSORTER_H