-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path_start.qml
More file actions
60 lines (51 loc) · 1.66 KB
/
_start.qml
File metadata and controls
60 lines (51 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 2.5
import net.asivery.AppLoad 1.0
Window {
visible: true
title: qsTr("AppLoad - PC emulator")
width: 1620 / 4
height: 2160 / 4
id: window
Rectangle {
anchors.fill: parent
color: "#f0f0f0"
Loader {
id: loader
source: "qrc:/appload/qml/appload.qml"
active: true
width: 1620
height: 2160
transform: Scale {
origin.x: loader.width / 2
origin.y: loader.height / 2
xScale: Math.min(window.width / loader.width, window.height / loader.height)
yScale: Math.min(window.width / loader.width, window.height / loader.height)
}
anchors.centerIn: parent
onLoaded: {
loader.item.visible = true;
loader.item.virtualKeyboardRef = keyboardLoader;
const toStart = AppLoadEmuOnly.startApp;
if(toStart) {
console.log(`Starting application: ${toStart}`);
AppLoadLauncher.requestLaunch(toStart, [], {}, false);
}
}
}
}
Loader {
property var layout: null
property var config: null
id: keyboardLoader
source: "qrc:/appload/qml/virtualKeyboard/Keyboard.qml"
active: false
width: parent.width
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
onLoaded: () => {
keyboardLoader.item.rebuildKeyboard(keyboardLoader.layout, keyboardLoader.config);
}
}
}