Qt Utilities 6.14.4
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Loading...
Searching...
No Matches
optioncategoryfiltermodel.h
Go to the documentation of this file.
1#ifndef DIALOGS_OPTIONCATEGORYFILTERMODEL_H
2#define DIALOGS_OPTIONCATEGORYFILTERMODEL_H
3
4#include <QSortFilterProxyModel>
5
6namespace QtUtilities {
7
8class OptionCategoryFilterModel : public QSortFilterProxyModel {
9 Q_OBJECT
10public:
11 explicit OptionCategoryFilterModel(QObject *parent = nullptr);
12
13protected:
14 bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override;
15};
16} // namespace QtUtilities
17
18#endif // DIALOGS_OPTIONCATEGORYFILTERMODEL_H
The OptionCategoryFilterModel class is used by SettingsDialog to filter option categories.
OptionCategoryFilterModel(QObject *parent=nullptr)
Constructs an option category filter model.
bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override