summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/ProfileModel.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-09-14 03:11:32 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-09-14 21:33:15 +0430
commit44cc6e1662a25887f6596bc4069cf3ff5856b834 (patch)
tree263905141aef57f8b760abfcecd34f557fe3dc96 /Userland/DevTools/Profiler/ProfileModel.h
parentbf0315ff8f73d436a17e4d377fa0ddcb57e80005 (diff)
downloadserenity-44cc6e1662a25887f6596bc4069cf3ff5856b834.zip
Profiler: Make the ProfileModel searchable
Note that this only searches the items at the same level as the selected index.
Diffstat (limited to 'Userland/DevTools/Profiler/ProfileModel.h')
-rw-r--r--Userland/DevTools/Profiler/ProfileModel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/DevTools/Profiler/ProfileModel.h b/Userland/DevTools/Profiler/ProfileModel.h
index 46f8fc6131..53cdabbe4a 100644
--- a/Userland/DevTools/Profiler/ProfileModel.h
+++ b/Userland/DevTools/Profiler/ProfileModel.h
@@ -38,6 +38,8 @@ public:
virtual GUI::ModelIndex parent_index(const GUI::ModelIndex&) const override;
virtual int tree_column() const override { return Column::StackFrame; }
virtual bool is_column_sortable(int) const override { return false; }
+ virtual bool is_searchable() const override { return true; }
+ virtual Vector<GUI::ModelIndex> matches(StringView const&, unsigned flags, GUI::ModelIndex const&) override;
private:
explicit ProfileModel(Profile&);