#ifndef DIALOGS_OPTIONCATEGORYFILTERMODEL_H #define DIALOGS_OPTIONCATEGORYFILTERMODEL_H #include namespace Dialogs { class OptionCategoryFilterModel : public QSortFilterProxyModel { Q_OBJECT public: explicit OptionCategoryFilterModel(QObject *parent = nullptr); protected: virtual bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override; }; } // namespace Dialogs #endif // DIALOGS_OPTIONCATEGORYFILTERMODEL_H