X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fapitracefilter.h;h=217938c82a0fa2775175317afff428c58bca6a49;hb=a26cf3eea71454aa5cc466a2abbe01537c95c31c;hp=2bd85575cdf90b7b12f93a34fdf53bc6d952ea82;hpb=c52d18a3319956aea59dfa6648c56ddd1df9414f;p=apitrace diff --git a/gui/apitracefilter.h b/gui/apitracefilter.h index 2bd8557..217938c 100644 --- a/gui/apitracefilter.h +++ b/gui/apitracefilter.h @@ -1,8 +1,11 @@ #ifndef APITRACEFILTER_H #define APITRACEFILTER_H +#include #include +class ApiTraceCall; + class ApiTraceFilter : public QSortFilterProxyModel { Q_OBJECT @@ -21,14 +24,16 @@ public: 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; };