diff options
author | Philippe Lelong <lelong.ph@meltemus.com> | 2016-12-20 16:35:17 +0100 |
---|---|---|
committer | Philippe Lelong <lelong.ph@meltemus.com> | 2016-12-20 16:35:17 +0100 |
commit | 7f94f08691efc1ce0e98e72707c3f2022d29fa57 (patch) | |
tree | b80f276c47e293e1ffe7c731efbfc58ef7d43987 /HomeScreen/qml/Home.qml | |
parent | 36a507d476066e7b12b462ec2d48d71447b663ab (diff) |
Modification for dynamic speed sign (not activated)sandbox/maitai/forgerock4
Signed-off-by: Philippe Lelong <lelong.ph@meltemus.com>
Diffstat (limited to 'HomeScreen/qml/Home.qml')
-rw-r--r-- | HomeScreen/qml/Home.qml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml index 423c24c..6657d40 100644 --- a/HomeScreen/qml/Home.qml +++ b/HomeScreen/qml/Home.qml @@ -41,8 +41,20 @@ Item { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 20 - source: './images/B14-90.png' + source: './images/sign.png' visible: false + Label { + id: speedLimit + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + horizontalAlignment: Text.AlignHCenter + color: "black" + text: "50" + font.pixelSize: 90 + font.family: "Roboto" + font.bold: true + visible: false + } } Image { id: flagLanguage @@ -119,8 +131,17 @@ Item { animation2.running = true; } - function showSign90(show) { + function showSign90(show, speed, unit) { sign90.visible = show + if(show) { + if(speed.length > 2) + speedLimit.font.pixelSize = 60 + else + speedLimit.font.pixelSize = 90 + speedLimit.text = speed + } + sign90.source = './images/B14-90.png' + speedLimit.visible = false } function showVisa(show, num) { |