aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/views/listview/content/ToggleButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/views/listview/content/ToggleButton.qml')
-rw-r--r--examples/quick/views/listview/content/ToggleButton.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/views/listview/content/ToggleButton.qml b/examples/quick/views/listview/content/ToggleButton.qml
index 0a2747a683..890a94570b 100644
--- a/examples/quick/views/listview/content/ToggleButton.qml
+++ b/examples/quick/views/listview/content/ToggleButton.qml
@@ -63,6 +63,6 @@ Rectangle {
Text { id: text; anchors.centerIn: parent; font.pixelSize: 14 }
MouseArea {
anchors.fill: parent
- onClicked: { active = !active; root.toggled() }
+ onClicked: { root.active = !root.active; root.toggled() }
}
}