aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/customitems/slideswitch
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/customitems/slideswitch')
-rw-r--r--examples/quick/customitems/slideswitch/content/Switch.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/customitems/slideswitch/content/Switch.qml b/examples/quick/customitems/slideswitch/content/Switch.qml
index 889ceb27bc..51b7185b72 100644
--- a/examples/quick/customitems/slideswitch/content/Switch.qml
+++ b/examples/quick/customitems/slideswitch/content/Switch.qml
@@ -53,7 +53,7 @@ Item {
function toggle() {
if (toggleswitch.state == "on")
toggleswitch.state = "off";
- else
+ else
toggleswitch.state = "on";
}
//![2]