-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmain.qml
78 lines (71 loc) · 1.85 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import QtQuick 2.0
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
Window {
id:mainwin
property int daytime: 0400
property string wincolor: "black"
property string gaugeglow: "white"
visible: true
width: 1920
height: 650
onAfterRendering: Work.start();
color: mainwin.wincolor
Rectangle{
id: background
anchors.fill: parent
color: "grey"
TabBar{
id: optiontabs
anchors.centerIn: parent
anchors.verticalCenterOffset: -310
width: 360
TabButton {
width: 120
text: "Standard"
}
TabButton {
width: 120
text: "Mustang"
}
TabButton {
width: 120
text: "Navigation"
}
}
StackLayout {
id: stcklayout
width: parent.width
height: 620
currentIndex: optiontabs.currentIndex
anchors.bottom : background.bottom
Item{
id: standard
Rectangle{
id: stdrect
anchors.fill: parent
color: "#cecece"
}
}
Item {
id: mustangtab
Rectangle{
id: mustangrect
anchors.fill: parent
color: "#a8a8a8"
Mustang{}
}
}
Item {
id: navtab
Rectangle{
anchors.fill: parent
Navigation{}
}
}
}
RPM{} //RPM Gauge
MPH{} //MPH Gauge
}
}