1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef SERVICESFILTERPROXYMODEL_H |
5 | #define SERVICESFILTERPROXYMODEL_H |
6 | |
7 | #include <QSortFilterProxyModel> |
8 | |
9 | class ServicesProxyModel : public QSortFilterProxyModel |
10 | { |
11 | Q_OBJECT |
12 | |
13 | public: |
14 | ServicesProxyModel(QObject *parent = nullptr); |
15 | QVariant (int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; |
16 | |
17 | protected: |
18 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; |
19 | }; |
20 | |
21 | #endif // SERVICESFILTERPROXYMODEL_H |
22 | |