2019-06-27 16:31:03 +10:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
2019-06-29 08:12:45 +10:00
|
|
|
import "Base"
|
2019-06-27 16:31:03 +10:00
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
id: window
|
|
|
|
width: 640
|
|
|
|
height: 480
|
|
|
|
visible: true
|
|
|
|
color: "black"
|
2019-06-29 08:12:45 +10:00
|
|
|
title: "Harmony QML"
|
2019-06-27 16:31:03 +10:00
|
|
|
|
|
|
|
property bool debug: false
|
|
|
|
property bool ready: false
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
Qt.application.name = "harmonyqml"
|
|
|
|
Qt.application.displayName = "Harmony QML"
|
|
|
|
Qt.application.version = "0.1.0"
|
|
|
|
window.ready = true
|
|
|
|
}
|
|
|
|
|
|
|
|
Python {
|
|
|
|
id: py
|
|
|
|
}
|
|
|
|
|
2019-06-29 08:12:45 +10:00
|
|
|
Models {
|
|
|
|
id: models
|
|
|
|
}
|
|
|
|
|
2019-06-27 16:31:03 +10:00
|
|
|
LoadingScreen {
|
|
|
|
id: loadingScreen
|
|
|
|
anchors.fill: parent
|
|
|
|
visible: uiLoader.scale < 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id: uiLoader
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
property bool ready: window.ready && py.ready
|
|
|
|
scale: uiLoader.ready ? 1 : 0.5
|
|
|
|
source: uiLoader.ready ? "UI.qml" : ""
|
|
|
|
|
|
|
|
Behavior on scale {
|
2019-06-29 08:12:45 +10:00
|
|
|
NumberAnimation { duration: HStyle.animationDuration }
|
2019-06-27 16:31:03 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|