30 return regEx.match(stringToCheck).hasMatch();
38 for(
int column = 0; column < this->
columnCount(); column++){
48 int startIndex,
int endIndex,
int offset)
const
50 if (
checkRow(sourceRow, sourceParent, startIndex, endIndex, offset))
54 for (
int irow = 0; irow < nrows; irow++)
78 for(
int index : columns)
const QList< int > & getColumns() const
bool isExactMatch() const
bool isCaseSensitive() const
bool isRegularExpression() const
SearchOptions mSearchOptions
virtual void startSearch(QString text, int options)=0
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,...
virtual bool checkRowRecursion(int sourceRow, const QModelIndex &sourceParent, int startIndex, int endIndex, int offset=0) const
SearchProxyModel(QObject *parent=nullptr)
bool isMatching(const QString searchString, const QString stringToCheck) const
Check if a string matches the SearchOptions.
virtual QList< QString > getColumnNames()
void append(const T &value)
virtual int columnCount(const QModelIndex &parent) const const override
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
int compare(const QString &other, Qt::CaseSensitivity cs) const const
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
bool canConvert(int targetTypeId) const const
bool isValid() const const
QString toString() const const