Исправлена структура каталогов
This commit is contained in:
40
resources/qml/ServiceForm.qml
Normal file
40
resources/qml/ServiceForm.qml
Normal file
@@ -0,0 +1,40 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.2
|
||||
|
||||
Page {
|
||||
id: root
|
||||
|
||||
title: qsTr("Service")
|
||||
|
||||
ListView {
|
||||
model: lightsModel.channelsCount
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
delegate: Row {
|
||||
spacing: 4
|
||||
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
Button {
|
||||
width: 160
|
||||
|
||||
text: qsTr("Bind channel %1").arg(index)
|
||||
|
||||
onClicked: {
|
||||
lightsModel.bindChannel(index)
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
width: 160
|
||||
|
||||
text: qsTr("Unbind channel %1").arg(index)
|
||||
|
||||
onClicked: {
|
||||
lightsModel.unbindChannel(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user