Changeset View
Changeset View
Standalone View
Standalone View
part/archivesortfiltermodel.h
Show All 15 Lines | |||||
16 | * You should have received a copy of the GNU General Public License | 16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | #ifndef ARCHIVESORTFILTERMODEL_H | 21 | #ifndef ARCHIVESORTFILTERMODEL_H | ||
22 | #define ARCHIVESORTFILTERMODEL_H | 22 | #define ARCHIVESORTFILTERMODEL_H | ||
23 | 23 | | |||
24 | #include <KRecursiveFilterProxyModel> | 24 | #include <QSortFilterProxyModel> | ||
25 | 25 | | |||
26 | class ArchiveSortFilterModel: public KRecursiveFilterProxyModel | 26 | class ArchiveSortFilterModel: public QSortFilterProxyModel | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | 29 | | |||
30 | public: | 30 | public: | ||
31 | explicit ArchiveSortFilterModel(QObject *parent = nullptr); | 31 | explicit ArchiveSortFilterModel(QObject *parent = nullptr); | ||
32 | ~ArchiveSortFilterModel() override; | 32 | ~ArchiveSortFilterModel() override; | ||
33 | 33 | | |||
34 | bool lessThan(const QModelIndex &leftIndex, const QModelIndex &rightIndex) const override; | 34 | bool lessThan(const QModelIndex &leftIndex, const QModelIndex &rightIndex) const override; | ||
35 | }; | 35 | }; | ||
36 | 36 | | |||
37 | #endif // ARCHIVESORTFILTERMODEL_H | 37 | #endif // ARCHIVESORTFILTERMODEL_H |