Добавил сервисную страницу, небольшой рефакторинг

This commit is contained in:
2018-08-14 20:24:20 +02:00
parent b6001e4e81
commit 76786176d2
6 changed files with 89 additions and 21 deletions

View File

@@ -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