Implemented creating of new light types or lights
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user