Commit 290d75d7 authored by Gabriel de Dietrich's avatar Gabriel de Dietrich
Browse files

testbench: Fix propertyMap type, move update out of loop


Change-Id: If109280bca207d0d5d7bd43964f5aaec9df553d3
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@theqtcompany.com>
Reviewed-by: default avatarCaroline Chao <caroline.chao@theqtcompany.com>
Showing with 5 additions and 5 deletions
...@@ -51,7 +51,7 @@ ApplicationWindow { ...@@ -51,7 +51,7 @@ ApplicationWindow {
property bool ignoreUpdate: false property bool ignoreUpdate: false
onPropertyChanged: container.resetSize() onPropertyChanged: container.resetSize()
property var propertyMap: [] property var propertyMap: ({})
property SpinBox widthControl property SpinBox widthControl
property SpinBox heightControl property SpinBox heightControl
...@@ -175,8 +175,8 @@ ApplicationWindow { ...@@ -175,8 +175,8 @@ ApplicationWindow {
customStyle.checked = false customStyle.checked = false
if (status == Loader.Ready) { if (status == Loader.Ready) {
propertyMap = [] propertyMap = {}
var arr = new Array var arr = {}
for (var prop in item) { for (var prop in item) {
...@@ -391,9 +391,9 @@ ApplicationWindow { ...@@ -391,9 +391,9 @@ ApplicationWindow {
arr[typeName].push({name: prop , result: val, typeString: typeName, layoutComponent: layout, enumModel: enumModelData}) arr[typeName].push({name: prop , result: val, typeString: typeName, layoutComponent: layout, enumModel: enumModelData})
} }
} }
propertyMap = arr;
container.resetSize();
} }
propertyMap = arr;
container.resetSize();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment