summaryrefslogtreecommitdiffstats
path: root/basicsuite/ebike-ui/StatsPage.qml
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2018-09-14 10:25:01 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2018-09-14 10:27:21 +0300
commit97863a4992276a3d1aeb3c1bb9ef5a280a5e8b12 (patch)
treeb38f6f152e7036b91c25834a917e320955660db2 /basicsuite/ebike-ui/StatsPage.qml
parent8be609623fc646e8d9642fc8481a1b9e59fb8417 (diff)
parentaa8e21cc3f60e54dd9c5d1ec482ca440857568f0 (diff)
Merge remote-tracking branch 'origin/5.11' into 5.12
* origin/5.11: aa8e21c Add new Qt3D demo ca03367 Exclude demos from colibri imx6ull a5345fd qtwebbrowser: merge changes from qtwebbrowser git repo d7e9731 do not enable highdpiscaling on emulator f730907 Fix mediaplayer default video path 09aa32d Fix some major scaling & font issues on ebike-demo Change-Id: I044c29ea2908a6254f32b0623037ea63f23d25cb
Diffstat (limited to 'basicsuite/ebike-ui/StatsPage.qml')
-rw-r--r--basicsuite/ebike-ui/StatsPage.qml26
1 files changed, 15 insertions, 11 deletions
diff --git a/basicsuite/ebike-ui/StatsPage.qml b/basicsuite/ebike-ui/StatsPage.qml
index 959b813..3a0351e 100644
--- a/basicsuite/ebike-ui/StatsPage.qml
+++ b/basicsuite/ebike-ui/StatsPage.qml
@@ -180,7 +180,9 @@ Page {
}
// Odometer
- Item {
+ Rectangle {
+ color: "transparent"
+ border.color: "red"
width: odometerText.width + odometerUnit.width + odometerDescription.width + 2 * 4
anchors {
right: parent.right
@@ -199,7 +201,7 @@ Page {
font {
family: "Montserrat, Light"
weight: Font.Light
- pixelSize: UILayout.statsDescriptionTextSize
+ pixelSize: root.height * 0.035
}
}
@@ -213,7 +215,7 @@ Page {
font {
family: "Montserrat, Bold"
weight: Font.Bold
- pixelSize: UILayout.statsValueTextSize
+ pixelSize: root.height * 0.035
}
}
@@ -226,7 +228,7 @@ Page {
font {
family: "Montserrat, Light"
weight: Font.Light
- pixelSize: UILayout.statsDescriptionTextSize
+ pixelSize: root.height * 0.035
}
}
}
@@ -237,11 +239,11 @@ Page {
left: parent.left
right: parent.right
top: endTrip.bottom
- bottom: tripChart.top
- leftMargin: UILayout.statsTripButtonMarginSide
- rightMargin: UILayout.statsTripButtonMarginSide
+ leftMargin: root.width * 0.025
+ rightMargin: root.width * 0.025
topMargin: UILayout.statsTopMargin
}
+ height: root.height * 0.2
// Hide any excess content, since we are using margins
clip: true
@@ -299,16 +301,18 @@ Page {
TripChart {
id: tripChart
- width: UILayout.chartWidth
- height: UILayout.chartHeight
anchors {
bottom: parent.bottom
right: parent.right
- bottomMargin: UILayout.chartBottomMargin
- rightMargin: UILayout.chartRightMargin
+ bottomMargin: root.height * 0.0125
+ rightMargin: root.width * 0.02
+ top: tripView.bottom
+ left: parent.left
+ leftMargin: root.width * 0.175
}
animationRunning: tripView.currentIndex === 0
tripDetails: tripdata.get(currentIndex)
currentIndex: tripView.currentIndex
+ visible: swipeView.currentIndex === 0
}
}