[qml] Optimize QML files and fix syntax warnings

This commit addresses warnings that were raised by QtCreator's linter:
- IDs declared more than once
- variables declared more than once in the same scope
- type coercions
- variables declared as "var" when their type is known
- unclosed "case" in switch-case
This commit is contained in:
Candice Bentéjac 2023-01-27 11:00:51 +01:00
parent 8c2a7bba0f
commit 091346cbb8
18 changed files with 99 additions and 97 deletions

View file

@ -70,7 +70,7 @@ DelegateModel {
function find(value, roleName) {
for(var i = 0; i < filteredItems.count; ++i)
{
if(modelData(filteredItems.get(i), roleName) == value)
if(modelData(filteredItems.get(i), roleName) === value)
return i
}
return -1