Make combobox for device type register types work

This commit is contained in:
2023-02-18 18:14:42 +01:00
parent 4d61e066f4
commit 14af9d0093
6 changed files with 148 additions and 73 deletions

View File

@@ -56,7 +56,7 @@ ColumnLayout {
textRole: "name"
valueRole: "id"
currentIndex: listView.currentData ? deviceTypeCombobox.indexOfValue(listView.currentData.deviceTypeId) : -1
onCurrentValueChanged: if (listView.currentData) listView.currentData.deviceTypeId = currentValue; else console.warn('discarded');
onActivated: if (listView.currentData) listView.currentData.deviceTypeId = currentValue; else console.warn('discarded');
}
Label { text: qsTr("Address:") }
SpinBox {