summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/StorageModel.h
diff options
context:
space:
mode:
authorTim Ledbetter <timledbetter@gmail.com>2023-04-26 17:23:08 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-05-29 10:47:48 -0600
commit556c4ac358fb3b88acc9b998125da42176801758 (patch)
tree54433d4e261c865933838ee5f3910119a43bc370 /Userland/Applications/Browser/StorageModel.h
parenta042c4e93dbc689bb9b19d14d66f9ca95fbdd754 (diff)
downloadserenity-556c4ac358fb3b88acc9b998125da42176801758.zip
LibGUI: Allow FilteringProxyModel to optionally sort results by score
When the `FilteringOptions::SortByScore` flag is set, filtered indices are sorted by match score in descending order, meaning the most relevant results should appear first. The default behavior of FilteringProxyModel is unchanged.
Diffstat (limited to 'Userland/Applications/Browser/StorageModel.h')
-rw-r--r--Userland/Applications/Browser/StorageModel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Browser/StorageModel.h b/Userland/Applications/Browser/StorageModel.h
index c1177c8738..92ed8bcf62 100644
--- a/Userland/Applications/Browser/StorageModel.h
+++ b/Userland/Applications/Browser/StorageModel.h
@@ -25,7 +25,7 @@ public:
virtual String column_name(int column) const override;
virtual GUI::ModelIndex index(int row, int column = 0, GUI::ModelIndex const& = GUI::ModelIndex()) const override;
virtual GUI::Variant data(GUI::ModelIndex const& index, GUI::ModelRole role = GUI::ModelRole::Display) const override;
- virtual TriState data_matches(GUI::ModelIndex const& index, GUI::Variant const& term) const override;
+ virtual GUI::Model::MatchResult data_matches(GUI::ModelIndex const& index, GUI::Variant const& term) const override;
private:
OrderedHashMap<DeprecatedString, DeprecatedString> m_local_storage_entries;