Добавлены настройки login и password
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user