-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlive.qml
48 lines (43 loc) · 1.11 KB
/
live.qml
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
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.Window
import Qt.labs.settings
import com.machinekoder.live
ApplicationWindow {
id: root
visible: true
title: qsTr("Intellicute Live Coding")
width: 1024
height: 800
flags: liveCoding.flags
visibility: liveCoding.visibility
Component.onCompleted: {
for (var i = 0; i < Qt.application.screens.length; ++i) {
let screen = Qt.application.screens[i]
if (screen.serialNumber === windowSettings.screen) {
root.screen = screen
return
}
}
}
Component.onDestruction: {
windowSettings.screen = root.screen.serialNumber
}
LiveCodingPanel {
id: liveCoding
anchors.fill: parent
}
Settings {
id: windowSettings
category: "window"
property alias width: root.width
property alias height: root.height
property alias x: root.x
property alias y: root.y
property alias visibility: liveCoding.visibility
property alias flags: liveCoding.flags
property alias hideToolBar: liveCoding.hideToolBar
property string screen: ""
}
}