overte/launchers/qt/resources/qml/root.qml
2019-09-13 15:23:40 -07:00

35 lines
702 B
QML

// root.qml
import QtQuick 2.3
import QtQuick.Controls 2.1
import HQLauncher 1.0
import "HFControls"
Item {
id: root
width: 515
height: 390
//source: "../images/hifi_window@2x.png"
Loader {
anchors.fill: parent
id: loader
}
Component.onCompleted: {
loader.source = LauncherState.getCurrentUISource();
LauncherState.updateSourceUrl.connect(function(url) {
loader.source = url;
});
}
Text {
font.pixelSize: 12
anchors.right: root.right
anchors.bottom: root.bottom
color: "#FFFFFF"
text: LauncherState.uiState.toString() + " - " + LauncherState.applicationState
}
}