Implemented creating of new light types or lights

This commit is contained in:
2023-02-15 01:38:00 +01:00
parent 7c580d53b4
commit 9a5e2d3cd7
6 changed files with 90 additions and 2 deletions

View File

@@ -20,11 +20,13 @@ ColumnLayout {
model: devicesModel
onAddClicked: (index) => console.log('added', index)
onAddClicked: (index) => devicesModel.insertRow(index < 0 ? 0 : index + 1);
onRemoveClicked: (index) => devicesModel.removeRow(index)
}
ColumnLayout {
enabled: listView.currentIndex !== -1
GridLayout {
Layout.preferredWidth: 300
Layout.maximumWidth: 300