Add settings for device type registers

This commit is contained in:
2023-02-15 22:27:57 +01:00
parent 5bb111d736
commit 895ac57046
3 changed files with 60 additions and 16 deletions

View File

@@ -23,7 +23,7 @@ ColumnLayout {
onAddClicked: (index) => devicesModel.insertRow(index < 0 ? 0 : index + 1);
onRemoveClicked: (index) => devicesModel.removeRow(index)
onCurrentDataChanged: test.value = currentData.position
onCurrentDataChanged: if (currentData) test.value = currentData.position
}
ColumnLayout {
@@ -37,6 +37,7 @@ ColumnLayout {
Label { text: qsTr("Id:") }
SpinBox {
enabled: false
Layout.fillWidth: true
value: listView.currentData.id
onValueModified: listView.currentData.id = value