#ifndef APITRACEFILTER_H
#define APITRACEFILTER_H
+#include <QRegExp>
#include <QSortFilterProxyModel>
+class ApiTraceCall;
+
class ApiTraceFilter : public QSortFilterProxyModel
{
Q_OBJECT
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;
protected:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
private:
- QString m_text;
+ QRegExp m_regexp;
FilterOptions m_filters;
};