Добавил сервисную страницу, небольшой рефакторинг
This commit is contained in:
12
HomeForm.qml
12
HomeForm.qml
@@ -4,18 +4,6 @@ import QtQuick.Controls 2.0
|
||||
Page {
|
||||
title: qsTr("nooLight")
|
||||
|
||||
function showError(text) {
|
||||
ToolTip.show(text, 1000)
|
||||
}
|
||||
|
||||
LightsModel {
|
||||
id: lightsModel
|
||||
|
||||
serviceUrl: settings.serviceUrl
|
||||
|
||||
onError: showError(text)
|
||||
}
|
||||
|
||||
ListView {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 5
|
||||
|
||||
Reference in New Issue
Block a user