aboutsummaryrefslogtreecommitdiffstats
path: root/src/remotesettings
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2019-04-03 17:14:21 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2019-04-03 14:34:01 +0000
commitc07385e7131a10ef9f214b5db5294fa2fc94d361 (patch)
treedafd99ad2c509b7277b4b9cca7ddc40797f4e652 /src/remotesettings
parent9b7c4e492813cca1f33d740efb9c9394490b1d1f (diff)
[cluster] Add new style with 3d gauges
Task-number: AUTOSUITE-854 Change-Id: I125bd138ae4aafe8b84e8478050bc432ef0722a0 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'src/remotesettings')
-rw-r--r--src/remotesettings/app/ClusterPage.qml19
-rw-r--r--src/remotesettings/settings.qface1
2 files changed, 16 insertions, 4 deletions
diff --git a/src/remotesettings/app/ClusterPage.qml b/src/remotesettings/app/ClusterPage.qml
index 811d1dcc..5a418659 100644
--- a/src/remotesettings/app/ClusterPage.qml
+++ b/src/remotesettings/app/ClusterPage.qml
@@ -165,6 +165,14 @@ Flickable {
onClicked: instrumentCluster.hideGauges = checked
}
+ Label {
+ text: qsTr("Flat Gauges:")
+ }
+ CheckBox {
+ checked: instrumentCluster.flatGauges
+ onClicked: instrumentCluster.flatGauges = checked
+ }
+
/*!
Outside Temperature
*/
@@ -298,12 +306,15 @@ Flickable {
interval: 1000
running: root.simulationEnabled
repeat: true
+ property int speedChange: 10
onTriggered: {
- if (instrumentCluster.speed < 140) {
- instrumentCluster.speed = instrumentCluster.speed + 10;
- } else {
- instrumentCluster.speed = 0.0;
+ if (instrumentCluster.speed > 140) {
+ speedChange = -10;
+ }
+ if (instrumentCluster.speed < 20) {
+ speedChange = 10;
}
+ instrumentCluster.speed += speedChange;
if (instrumentCluster.ePower < 80) {
instrumentCluster.ePower = instrumentCluster.ePower + 2;
diff --git a/src/remotesettings/settings.qface b/src/remotesettings/settings.qface
index 769b04bc..ba4a68af 100644
--- a/src/remotesettings/settings.qface
+++ b/src/remotesettings/settings.qface
@@ -108,6 +108,7 @@ interface InstrumentCluster {
/** Whether both gaueges should be hidden or not */
bool hideGauges;
+ bool flatGauges;
}
@config: {id: "SystemUI"}