Исправлена структура каталогов
This commit is contained in:
31
resources/qml/HomeForm.qml
Normal file
31
resources/qml/HomeForm.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.0
|
||||
|
||||
Page {
|
||||
title: qsTr("nooLight")
|
||||
|
||||
ListView {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 5
|
||||
|
||||
model: lightsModel
|
||||
spacing: 5
|
||||
|
||||
delegate: LightGroup {
|
||||
width: parent.width
|
||||
height: childrenRect.height
|
||||
|
||||
title: groupName || ""
|
||||
lights: channels
|
||||
|
||||
onChannelClicked: {
|
||||
lightsModel.switchChannel(channelId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
anchors.centerIn: parent
|
||||
running: lightsModel.isLoading
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user