Commit 27f61a75 authored by Nick Anthony's avatar Nick Anthony

Implemented workaround for bug with qml property binding. Now the state of the...

Implemented workaround for bug with qml property binding. Now the state of the checkbox will always match up with the state of the outputEnabled.
parent 02a8b5b1
......@@ -366,10 +366,16 @@ SetupPage {
id: enabledCheckBox
enabled: _activeJoystick ? _activeJoystick.calibrated : false
text: _activeJoystick ? _activeJoystick.calibrated ? qsTr("Enable joystick input") : qsTr("Enable not allowed (Calibrate First)") : ""
checked: _activeJoystick.outputEnabled
onClicked: _activeJoystick.outputEnabled = checked
Connections {
target: _activeJoystick
onOutputEnabledChanged: {
enabledCheckBox.checked=enabled
}
}
Connections {
target: joystickManager
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment