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

@@ -27,7 +27,7 @@ ColumnLayout {
}
Button {
text: qsTr("Remove")
text: qsTr("Remove ") + listView.currentIndex
onClicked: removeClicked(listView.currentIndex)
enabled: listView.currentIndex >= 0
@@ -42,6 +42,8 @@ ColumnLayout {
clip: true
onCountChanged: if (count === 0 && currentIndex >= 0) currentIndex = -1
delegate: Item {
property variant myData: model
readonly property bool isCurrentItem: ListView.isCurrentItem