-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.qml
63 lines (53 loc) · 1.28 KB
/
main.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import QtQuick 2.1
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.1 as Kirigami
import QtQuick.Extras 1.4
import org.kde.atcore 1.0
Kirigami.ApplicationWindow {
id: root
property var file: ""
AtCore {
id: atcore
Component.onCompleted: atcore.setSerialTimerInterval(1000)
}
globalDrawer: Kirigami.GlobalDrawer {
id: left
title: "AtCore Gui"
titleIcon: "applications-graphics"
handleVisible: true
ControlPanel {
id: controlPanel
}
Item {
Layout.fillHeight: true
}
}
contextDrawer: Kirigami.ContextDrawer {
id: contextDrawer
}
pageStack.initialPage: mainPageComponent
Component {
id: mainPageComponent
Principal{
id: principal
file: controlPanel.file
actions {
contextualActions: [
Kirigami.Action {
text: "Logger"
onTriggered: {
pageStack.push(loggerPage)
}
}
]
}
}
}
Component {
id: loggerPage
LoggerPage{
id: logger
}
}
}