19 mFilterNets = !mFilterNets;
26 mFilterGates = !mFilterGates;
57 name_left = name_left.
toLower();
58 name_right = name_right.
toLower();
66 return mSortMechanism;
97 if (
checkRow(sourceRow, sourceParent, startIndex, endIndex, offset))
101 for (
int irow = 0; irow < nrows; irow++)
An item in the ModuleModel.
TreeItemType getType() const
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
bool checkRowRecursion(int sourceRow, const QModelIndex &sourceParent, int startIndex, int endIndex, int offset=0) const override
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override
void setSortMechanism(gui_utility::mSortMechanism sortMechanism)
void startSearch(QString text, int options) override
gui_utility::mSortMechanism sortMechanism()
ModuleProxyModel(QObject *parent=nullptr)
SearchOptions mSearchOptions
bool checkRow(int sourceRow, const QModelIndex &sourceParent, int startIndex, int endIndex, int offset=0) const
Should be called inside filterAcceptsRow function and returns true if the source_row,...
int compare(mSortMechanism mechanism, QString a, QString b)
QVariant data(int role) const const
void * internalPointer() const const
bool isValid() const const
QString toLower() const const
QString toString() const const