diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-02 13:39:19 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-11-02 13:39:19 +0900 |
commit | a1375eaac269465e28164bf8f7df62c4aadabe4c (patch) | |
tree | d76c522e50f059bb33ce2ff2192cace9e79a259c /app/Tacho.qml | |
parent | a35b3631420ac051a1b50a00806ee29900f03250 (diff) |
add horizontal for tachometer
Diffstat (limited to 'app/Tacho.qml')
-rw-r--r-- | app/Tacho.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Tacho.qml b/app/Tacho.qml index 9c4fbee..4dd71d2 100644 --- a/app/Tacho.qml +++ b/app/Tacho.qml @@ -18,8 +18,8 @@ import QtQuick 2.6 import QtWebSockets 1.0 Item { - property real imgwidth: 600 - property real imgheight: 600 + property real imgwidth: 500 + property real imgheight: 500 property real tacho: enginespeed === undefined ? 0 : (enginespeed > 9000 ? 9 : enginespeed*9/9000) @@ -50,7 +50,7 @@ Item { Shift { percent: imgwidth/480 anchors.right: parent.right - anchors.rightMargin: wshift > 0 ? (imgwidth-width)/2+25 : (imgwidth-width)/2-5 + anchors.rightMargin: (wshift == "N" || wshift == "P" ||wshift == "R" )? (imgwidth-width)/2+25 : (imgwidth-width)/2-5 anchors.bottom: parent.bottom anchors.bottomMargin: 100 spacing: -10 |