Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Vital <mugulmotion@gmail.com>2022-11-08 11:01:34 +0300
committerLoïc Vital <mugulmotion@gmail.com>2022-11-08 11:01:34 +0300
commita006d8a89e784a11dbc16f444aa578dac40d43ef (patch)
tree5c6c6be782336909c4fdcba1c7d9fcd34569b3ad
parentdd92807be964b04d557af5eaf16f1c5e63e1e0bb (diff)
[ui] search bar looking for sub-string match instead of regexp matchmug/searchImgGallery
-rw-r--r--meshroom/ui/qml/Utils/SortFilterDelegateModel.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/meshroom/ui/qml/Utils/SortFilterDelegateModel.qml b/meshroom/ui/qml/Utils/SortFilterDelegateModel.qml
index 00fb3984..d5a191a0 100644
--- a/meshroom/ui/qml/Utils/SortFilterDelegateModel.qml
+++ b/meshroom/ui/qml/Utils/SortFilterDelegateModel.qml
@@ -92,7 +92,7 @@ DelegateModel {
switch(value.constructor.name)
{
case "String":
- return value.toLowerCase().search(filter.toLowerCase()) >= 0
+ return value.toLowerCase().indexOf(filter.toLowerCase()) > -1
default:
return value === filter
}