| 1 | #ifndef DIALOGS_OPTIONCATEGORYFILTERMODEL_H |
| 2 | #define DIALOGS_OPTIONCATEGORYFILTERMODEL_H |
| 3 | |
| 4 | #include <QSortFilterProxyModel> |
| 5 | |
| 6 | namespace QtUtilities { |
| 7 | |
| 8 | class OptionCategoryFilterModel : public QSortFilterProxyModel { |
| 9 | Q_OBJECT |
| 10 | public: |
| 11 | explicit OptionCategoryFilterModel(QObject *parent = nullptr); |
| 12 | |
| 13 | protected: |
| 14 | bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override; |
| 15 | }; |
| 16 | } // namespace QtUtilities |
| 17 | |
| 18 | #endif // DIALOGS_OPTIONCATEGORYFILTERMODEL_H |