aboutsummaryrefslogtreecommitdiffstats
path: root/imports
diff options
context:
space:
mode:
authorNedim Hadzic <nedim.hadzic@pelagicore.com>2016-08-17 12:08:13 +0200
committerNedim Hadzic <nedim.hadzic@pelagicore.com>2016-08-19 07:54:05 +0000
commitfc2e7efd1d5457a7149855e796947b6e32d9cce8 (patch)
treeb5d2537b2f0aaa14799c05fc221ba1cb3ef66678 /imports
parent044e47a5f1bb7afb0abbaef041ac04793aa2246a (diff)
Made Cluster scalable
Cluster UI was designed for fixed size (1920x720). It is now possible to set the cluster size in your Style file and the Cluster should adopt to it. Only restrictions is the proportion, it needs to match 24:9. Task-number: QTAUTO-110 Change-Id: I4de5c48f5ea5f65398c7dacd37d75f4a1fe314a2 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'imports')
-rw-r--r--imports/shared/service/vehicle/VehicleService.qml2
-rw-r--r--imports/shared/utils/Style.qml2
2 files changed, 3 insertions, 1 deletions
diff --git a/imports/shared/service/vehicle/VehicleService.qml b/imports/shared/service/vehicle/VehicleService.qml
index ef5984a..70964fe 100644
--- a/imports/shared/service/vehicle/VehicleService.qml
+++ b/imports/shared/service/vehicle/VehicleService.qml
@@ -48,7 +48,7 @@ QtObject {
}
}
- readonly property real rightDialValue: root.speed * 0.0061
+ readonly property real rightDialValue: root.speed * 0.0031
property int displaySpeed: speed
property real fuel: 0.5 // fuel precentage min 0.0; max 1.0;
diff --git a/imports/shared/utils/Style.qml b/imports/shared/utils/Style.qml
index 9301eda..59cdafe 100644
--- a/imports/shared/utils/Style.qml
+++ b/imports/shared/utils/Style.qml
@@ -46,6 +46,8 @@ QtObject {
property int screenWidth: configValue("screenWidth", 1280)
property int screenHeight: configValue("screenHeight", 800)
+ property int clusterWidth: configValue("clusterWidth", 1920)
+ property int clusterHeight: configValue("clusterHeight", 720)
property int displayHMargin: configValue("displayHMargin", 11)
property int displayVMargin: configValue("displayVMargin", 0)
property int cellWidth: configValue("cellWidth", 53) // 1280/24