File indexing completed on 2024-04-21 05:50:17
0001 /* 0002 SPDX-FileCopyrightText: 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDFSORTPROXYMODEL_H 0008 #define KDFSORTPROXYMODEL_H 0009 0010 #include <QSortFilterProxyModel> 0011 0012 class KDFSortFilterProxyModel: public QSortFilterProxyModel 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 explicit KDFSortFilterProxyModel(QObject * parent = nullptr): 0018 QSortFilterProxyModel(parent){} 0019 0020 protected: 0021 bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; 0022 0023 }; 0024 0025 #endif 0026