1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:17:35 +00:00

Profiler: Make the ProfileModel searchable

Note that this only searches the items at the same level as the selected
index.
This commit is contained in:
Ali Mohammad Pur 2021-09-14 03:11:32 +04:30 committed by Ali Mohammad Pur
parent bf0315ff8f
commit 44cc6e1662
2 changed files with 27 additions and 0 deletions

View file

@ -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&);