BugFix: Toggle Switch now updated Switch Checked Internally
This commit is contained in:
parent
c33a868d0c
commit
f1bc0197d1
|
@ -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()}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue