diff options
Diffstat (limited to 'Fields/Bool.qml')
| -rw-r--r-- | Fields/Bool.qml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Fields/Bool.qml b/Fields/Bool.qml index ccb0758..f6cd184 100644 --- a/Fields/Bool.qml +++ b/Fields/Bool.qml @@ -4,14 +4,13 @@ import QtQuick 2.12 import QtQuick.Controls 2.13 Row { - id: control width: parent.width - property var definition + property var model property alias value: input.checked Keys.onPressed: { - if (event.text === definition.key) { + if (event.text === model.key) { value = !value event.accepted = true } |
