]> git.cworth.org Git - apitrace/blobdiff - gui/apitracefilter.h
Fix silly typo
[apitrace] / gui / apitracefilter.h
index 2bd85575cdf90b7b12f93a34fdf53bc6d952ea82..30c92a1287ff55794892068686d745c7d0155fcc 100644 (file)
@@ -1,8 +1,11 @@
 #ifndef APITRACEFILTER_H
 #define APITRACEFILTER_H
 
+#include <QRegExp>
 #include <QSortFilterProxyModel>
 
+class ApiTraceCall;
+
 class ApiTraceFilter : public QSortFilterProxyModel
 {
     Q_OBJECT
@@ -21,14 +24,15 @@ public:
     FilterOptions filterOptions() const;
     void setFilterOptions(FilterOptions opts);
 
-    void setFilterString(const QString &text);
+    void setFilterRegexp(const QRegExp &regexp);
+    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;
 };