Skip to content
Snippets Groups Projects
Commit db5b8e09 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

ToggleSwitch: fix signal emission

Change-Id: I06e84a6c71cb3ca1918a0df372ab4df950f0cbae
parent 68fe716c
Branches
Tags
No related merge requests found
...@@ -75,7 +75,9 @@ RowLayout { ...@@ -75,7 +75,9 @@ RowLayout {
target: parent target: parent
enabled: parent.visible enabled: parent.visible
onTapped: function onTapped(eventPoint) { onTapped: function onTapped(eventPoint) {
// switchToggled should be emitted as onToggled is not called (because it's only called if the user click on the switch)
switchOfLayout.checked = !switchOfLayout.checked switchOfLayout.checked = !switchOfLayout.checked
switchToggled()
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment