-
Notifications
You must be signed in to change notification settings - Fork 8
/
TrackCharacteristics.qml
69 lines (61 loc) · 1.7 KB
/
TrackCharacteristics.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
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.0
Item {
implicitHeight: columnLayout.height
ColumnLayout{
id: columnLayout
anchors.fill: parent
Label{
text:"DURATION"
Layout.fillWidth: true
font.pointSize: 9
}
Text{
id: duration
text: trackStat.duration
width: 300
height:50
fontSizeMode: Text.Fit
Layout.fillWidth: true
Layout.fillHeight: true
horizontalAlignment:Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
minimumPixelSize: 14; font.pixelSize:100
}
Label{
text:"DISTANCE(km)"
Layout.fillWidth: true
font.pointSize: 9
}
Text{
id: distance
text: trackStat.distanceKm
width: 300
height:50
fontSizeMode: Text.Fit
Layout.fillWidth: true
Layout.fillHeight: true
horizontalAlignment:Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
minimumPixelSize: 14; font.pixelSize:100
}
Label{
text:"SPEED(kmh)"
Layout.fillWidth: true
font.pointSize: 9
}
Text{
id: speed
text: trackStat.speedKmh
width: 300
height:50
fontSizeMode: Text.Fit
Layout.fillWidth: true
Layout.fillHeight: true
horizontalAlignment:Text.AlignHCenter
//verticalAlignment: Text.AlignVCenter
minimumPixelSize: 14; font.pixelSize:100
}
}
}