mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[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:
parent
8c2a7bba0f
commit
091346cbb8
18 changed files with 99 additions and 97 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue