on xenial help sign in
Update ScopeSettingBoolean
commit257402ef495212656b00c7ed6a367ea39a72176e authorAndrea Cimitan <andrea.cimitan@gmail.com> dateWed 13 Aug 2014, 08:54 (12 years ago) parent5903817
2 files changed+7
qml/Dash/ScopeSettings/ScopeSettingBoolean.qml+2 tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml+5
qml/Dash/ScopeSettings/ScopeSettingBoolean.qml+2
@@ -24,6 +24,7 @@ ScopeSetting {
2424
2525 ListItem.Empty {
2626 id: listItem
27+
2728 onClicked: {
2829 control.checked = !control.checked
2930 updated(control.checked)
@@ -44,6 +45,7 @@ ScopeSetting {
4445
4546 CheckBox {
4647 id: control
48+ objectName: "control"
4749 anchors {
4850 right: parent.right
4951 rightMargin: __margins
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingBoolean.qml+5
@@ -52,6 +52,11 @@ Rectangle {
5252 mouseClick(control, control.width / 2, control.height / 2);
5353 spy.wait();
5454 compare(spy.signalArguments[0][0], false);
55+
56+ spy.clear();
57+ mouseClick(scopeSetting, scopeSetting.width / 2, scopeSetting.height / 2);
58+ spy.wait();
59+ compare(spy.signalArguments[0][0], true);
5560 }
5661 }
5762}