Implemented creating of new light types or lights
This commit is contained in:
1 parent
7c580d53b4
commit
9a5e2d3cd7
6 files changed
+90
-2
No files matched your search
@@ -20,11 +20,13 @@ ColumnLayout {
|
||||
|
||||
model: deviceTypesModel
|
||||
|
||||
onAddClicked: (index) => console.log('added', index);
|
||||
onAddClicked: (index) => deviceTypesModel.insertRow(index < 0 ? 0 : index + 1);
|
||||
onRemoveClicked: (index) => deviceTypesModel.removeRow(index)
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
enabled: listView.currentIndex !== -1
|
||||
|
||||
GridLayout {
|
||||
Layout.preferredWidth: 300
|
||||
Layout.maximumWidth: 300
|
||||
|
||||
Reference in new issue
Block a user