Добавлены настройки login и password

This commit is contained in:
2024-05-18 13:40:15 +02:00
parent e793c1a375
commit 5443c573e2
8 changed files with 122 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
import QtQuick 2.9
import QtQuick.Controls 2.2
import Qt.labs.settings 1.0
import ru.ded.noolight 1.0
import ru.ded.components 1.0
ApplicationWindow {
@@ -12,16 +12,10 @@ ApplicationWindow {
height: 480
title: qsTr("Stack")
Settings {
id: settings
property string serviceUrl: ""
}
LightsModel {
id: lightsModel
serviceUrl: settings.serviceUrl
serviceUrl: Settings.serviceUrl
onError: (text) => stackView.showError(text)
}
@@ -102,7 +96,7 @@ ApplicationWindow {
}
}
onClosing: {
onClosing: (close) => {
if (stackView.depth > 1) {
close.accepted = false
stackView.pop()