gz/gui/SearchModel.hh
Go to the documentation of this file.
Customize the proxy model to display search results.
Definition: gz/gui/SearchModel.hh:37
bool HasChildAcceptsItself(const QModelIndex &_srcParent, const QString &_word) const
Check if any of the children accepts a specific word.
QString search
Full search string.
Definition: gz/gui/SearchModel.hh:90
bool FilterAcceptsRowItself(const int _srcRow, const QModelIndex &_srcParent, const QString &_word) const
Check if row contains the word on itself.
bool filterAcceptsRow(const int _srcRow, const QModelIndex &_srcParent) const
Overloaded Qt method. Customize so we accept rows where:
bool HasAcceptedChildren(const int _srcRow, const QModelIndex &_srcParent) const
Check if any of the children is fully accepted.