BugFix: Toggle Switch now updated Switch Checked Internally

This commit is contained in:
Sarah Jamie Lewis 2020-10-26 10:54:56 -07:00
parent c33a868d0c
commit f1bc0197d1
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import "theme"
Switch {
property bool isToggled
property var onToggled: function () { console.log("In Superclass") };
checked: isToggled
style: SwitchStyle {
handle: Rectangle {
implicitWidth: 25
@ -26,7 +26,7 @@ Switch {
}
}
onClicked: function() {isToggled = !isToggled; onToggled()}
onClicked: function() {onToggled()}
}