HAL  v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
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 
30  void setFilterNets(bool filterNets);
31 
36  void setFilterGates(bool filterGates);
37 
41  bool areNetsFiltered();
42 
46  bool areGatesFiltered();
47 
48  protected:
56  bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override;
57 
58  private:
59  bool mFilterNets;
60  bool mFilterGates;
61  };
62 }
Enables filtering of nets or gates in the ModuleModel.
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
FilterElementsProxyModel(QObject *parent=nullptr)
Definition: defines.h:45
Q_OBJECTQ_OBJECT
QObject * parent() const const