mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibGUI: Implement searching/jumping as you type in views
This allows the user to start typing and highlighting and jumping to a match in ColumnsView, IconView, TableView and TreeView if the model supports it.
This commit is contained in:
parent
307f0bc778
commit
52a847a0eb
Notes:
sideshowbarker
2024-07-19 01:48:54 +09:00
Author: https://github.com/tomuta
Commit: 52a847a0eb
Pull-request: https://github.com/SerenityOS/serenity/pull/3808
Reviewed-by: https://github.com/awesomekling
13 changed files with 244 additions and 19 deletions
|
@ -46,7 +46,9 @@ public:
|
|||
virtual ModelIndex parent_index(const ModelIndex&) const override;
|
||||
virtual ModelIndex index(int row, int column, const ModelIndex& parent) const override;
|
||||
virtual bool is_editable(const ModelIndex&) const override;
|
||||
virtual bool is_searchable() const override;
|
||||
virtual void set_data(const ModelIndex&, const Variant&) override;
|
||||
virtual Vector<ModelIndex, 1> matches(const StringView&, unsigned = MatchesFlag::AllMatching, const ModelIndex& = ModelIndex()) override;
|
||||
|
||||
virtual bool is_column_sortable(int column_index) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue