moment/harmonyqml/components/Window.qml

17 lines
400 B
QML
Raw Normal View History

2019-03-22 14:28:14 +11:00
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Window 2.7
2019-03-22 14:28:14 +11:00
ApplicationWindow {
visible: true
width: Math.min(Screen.width, 1152)
height: Math.min(Screen.height, 768)
2019-03-22 14:28:14 +11:00
Loader {
anchors.fill: parent
2019-04-27 06:02:20 +10:00
source: Backend.clientManager.clientCount < 1 ?
"pages/LoginPage/LoginPage.qml" : "pages/MainUI.qml"
2019-03-22 14:28:14 +11:00
objectName: "UILoader"
}
}