Qt Utilities  6.4.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
optioncategoryfiltermodel.h
Go to the documentation of this file.
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
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