#ifndef APITRACEFILTER_H
#define APITRACEFILTER_H
+#include <QRegExp>
#include <QSortFilterProxyModel>
class ApiTraceCall;
FilterOptions filterOptions() const;
void setFilterOptions(FilterOptions opts);
- void setFilterString(const QString &text);
+ void setFilterRegexp(const QRegExp ®exp);
+ QRegExp filterRegexp() const;
QModelIndex callIndex(int callNum) const;
QModelIndex indexForCall(ApiTraceCall *call) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
private:
- QString m_text;
+ QRegExp m_regexp;
FilterOptions m_filters;
};