Qt Utilities  5.13.0
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 Dialogs {
7 
8 class OptionCategoryFilterModel : public QSortFilterProxyModel {
9  Q_OBJECT
10 public:
11  explicit OptionCategoryFilterModel(QObject *parent = nullptr);
12 
13 protected:
14  virtual bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override;
15 };
16 } // namespace Dialogs
17 
18 #endif // DIALOGS_OPTIONCATEGORYFILTERMODEL_H
OptionCategoryFilterModel(QObject *parent=nullptr)
Constructs an option category filter model.
Provides common dialogs such as AboutDialog, EnterPasswordDialog and SettingsDialog.
Definition: dialogutils.h:12
virtual bool filterAcceptsRow(int source_row, const QModelIndex &sourceParent) const override
The OptionCategoryFilterModel class is used by SettingsDialog to filter option categories.