First commit

There was history before but now there is no more.
This commit is contained in:
Timotej Lazar 2021-06-14 19:09:53 +02:00
commit 8d57bfb1ae
No known key found for this signature in database
GPG key ID: B6F38793D143456F
35 changed files with 2231 additions and 0 deletions

27
Fields/Bool.qml Normal file
View file

@ -0,0 +1,27 @@
// SPDX-License-Identifier: Unlicense
import QtQuick 2.12
import QtQuick.Controls 2.13
Row {
id: control
width: parent.width
property var definition
property alias value: input.checked
Keys.onPressed: {
if (event.text === definition.key) {
value = !value
event.accepted = true
}
}
function set(val) { value = val || false }
CheckBox {
id: input
focusPolicy: Qt.NoFocus
padding: 0
font.capitalization: Font.SmallCaps
}
}