diff options
author | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2021-03-05 15:30:46 +0200 |
---|---|---|
committer | Pasi Petäjäjärvi <pasi.petajajarvi@qt.io> | 2021-04-09 08:16:40 +0000 |
commit | b209c46e68bee994c87366154d43737826494466 (patch) | |
tree | cbe3ef63f010a1aaa1ae12c8b9c9a11876380d2e /basicsuite/ebike-ui/ClockView.qml | |
parent | bc9b21b132c6459a4354e22d80e1db9bb447d1ea (diff) |
perf: Improve performance on low end devices
Task-number: QTBUG-85573
Change-Id: I04168910f7b306e5e4a9287df496bb9af13b0159
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'basicsuite/ebike-ui/ClockView.qml')
-rw-r--r-- | basicsuite/ebike-ui/ClockView.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basicsuite/ebike-ui/ClockView.qml b/basicsuite/ebike-ui/ClockView.qml index 55ada41..70101e1 100644 --- a/basicsuite/ebike-ui/ClockView.qml +++ b/basicsuite/ebike-ui/ClockView.qml @@ -38,8 +38,8 @@ import QtQuick 2.7 import "./BikeStyle" // Permanent placeholder for time display Item { - width: backgroundImage.width - height: backgroundImage.height + width: parent.width * 0.225 + height: parent.height * 0.075 z: 1 // Timer that will show the current time at the top of the screen @@ -53,12 +53,11 @@ Item { source: "images/top_curtain_drag.png" anchors.centerIn: parent fillMode: Image.PreserveAspectFit - width: root.width * 0.225 - height: root.height * 0.075 } Text { id: timeLabel + clip: clipDynamicText anchors { horizontalCenter: parent.horizontalCenter baseline: parent.top |