summaryrefslogtreecommitdiff
path: root/tests/manual
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-03-02 07:08:26 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-02 07:10:03 +0100
commit8ef3923e9233c2d87a27dd83c1290aa1f6c18db7 (patch)
treed9826f9fc75cba319f1d9ac58df8d430b0587049 /tests/manual
parenta5609fb68bef512612aea4efa8d307bc2c47bbfa (diff)
downloadqtquickcontrols-8ef3923e9233c2d87a27dd83c1290aa1f6c18db7.tar.gz
Fix checkbox properties in TestBench
Since the "result" will allways evaluate to true simply because it is defined. We need to check if the string is "true" as well. Change-Id: I53302d4a9a1ad9a11e474484339b63720b63ba4d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/testbench/content/PropertyLayouts.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/testbench/content/PropertyLayouts.qml b/tests/manual/testbench/content/PropertyLayouts.qml
index 7e936702..768c02fb 100644
--- a/tests/manual/testbench/content/PropertyLayouts.qml
+++ b/tests/manual/testbench/content/PropertyLayouts.qml
@@ -43,7 +43,7 @@ import QtQuick.Controls 1.0
QtObject {
property Component boolLayout: CheckBox {
- checked: visible ? result : false
+ checked: visible ? (result == "true") : false
text: name
onCheckedChanged: loader.item[name] = checked
}