HAL
filter_elements_proxy_model.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "gui/gui_utils/sort.h"
4 
5 #include <QSortFilterProxyModel>
6 
7 namespace hal
8 {
15  {
16  Q_OBJECT
17 
18  public:
25 
31  void setFilterNets(bool filterNets);
32 
38  void setFilterGates(bool filterGates);
39 
43  bool areNetsFiltered();
44 
48  bool areGatesFiltered();
49 
50  protected:
58  bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override;
59 
60  private:
61  bool mFilterNets;
62  bool mFilterGates;
63  };
64 }
Enables filtering of nets or gates in the ModuleModel.
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
FilterElementsProxyModel(QObject *parent=nullptr)
Q_OBJECTQ_OBJECT
QObject * parent() const const