diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 10:54:36 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-31 11:54:31 -0400 |
| commit | 8efab8bf129b6f9928f478a429e20cf018e5e373 (patch) | |
| tree | 700b51d7d4030c145b535c2bc70b062f41491b58 /src/filterwidget.h | |
| parent | 98b3be3e9bbca73640842f6dadaa159dcec04f7b (diff) | |
FilterWidget takes a predicate to match strings
copied the logic from modlistsortproxy so the basic boolean syntax in filters works
Diffstat (limited to 'src/filterwidget.h')
| -rw-r--r-- | src/filterwidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filterwidget.h b/src/filterwidget.h index ca731dc1..4fee5983 100644 --- a/src/filterwidget.h +++ b/src/filterwidget.h @@ -13,7 +13,7 @@ public: void set(QLineEdit* edit); void clear(); - bool matches(const QString& s) const; + bool matches(std::function<bool (const QString& what)> pred) const; private: QLineEdit* m_edit; |
