summaryrefslogtreecommitdiffstats
path: root/app/Tacho.qml
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 13:51:09 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-02-06 13:53:35 +0900
commit95b45c40f7db39d4a9a0ceb2995b976b0f2792e4 (patch)
tree6d3684d394b5cc74898ccfa811f6434f639d101c /app/Tacho.qml
parenta35b3631420ac051a1b50a00806ee29900f03250 (diff)
Change als-meter-demo by using low-can data. For m3ulcb/h3ulcb board, the usb camera device id is over 10, Detect the camera device from 0 to 19. Change-Id: Icbd0b4327c9c356f40cea320420d149d850e4347 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'app/Tacho.qml')
-rw-r--r--app/Tacho.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Tacho.qml b/app/Tacho.qml
index 9c4fbee..853b12b 100644
--- a/app/Tacho.qml
+++ b/app/Tacho.qml
@@ -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