import QtQuick 2.0 import QtQuick.Controls 2.0 import ru.ded.components 1.0 Page { title: qsTr("nooLight") ListView { id: listView anchors.fill: parent anchors.margins: 5 model: lightsModel spacing: 5 delegate: LightGroup { width: listView.width height: childrenRect.height title: groupName || "" lights: channels onChannelClicked: { lightsModel.switchChannel(channelId) } } PoolToRefresh { anchors.top: parent.top width: parent.width height: 30 onUpdate: { lightsModel.reload() } } } BusyIndicator { anchors.centerIn: parent running: lightsModel.isLoading } }