aboutsummaryrefslogtreecommitdiffstats
path: root/HomeScreen/qml/Home.qml
diff options
context:
space:
mode:
authorPhilippe Lelong <lelong.ph@meltemus.com>2016-12-16 09:21:21 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-12-20 13:28:35 +0100
commit2a803ddcf479ba70b08b199e0448521969796a14 (patch)
tree72317f60f7b366a491506f94cb6499ac4aea34c5 /HomeScreen/qml/Home.qml
parent29be7bef7c0bb700af8992c73ab7a3c6d1fbdfce (diff)
websockets mechanism implemented
Signed-off-by: Philippe Lelong <lelong.ph@meltemus.com>
Diffstat (limited to 'HomeScreen/qml/Home.qml')
-rw-r--r--HomeScreen/qml/Home.qml16
1 files changed, 14 insertions, 2 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml
index 8753d29..63bb385 100644
--- a/HomeScreen/qml/Home.qml
+++ b/HomeScreen/qml/Home.qml
@@ -51,6 +51,17 @@ Item {
anchors.topMargin: 20
source: './images/visa.png'
visible: false
+ Label {
+ id: cardNumber
+ anchors.top: parent.bottom
+ anchors.topMargin: 10
+ anchors.horizontalCenter: parent.horizontalCenter
+ horizontalAlignment: Text.AlignHCenter
+ color: "white"
+ text: "111"
+ font.pixelSize: 20
+ font.family: "Roboto"
+ }
}
Item {
id: hello
@@ -62,7 +73,7 @@ Item {
id: helloText
anchors.centerIn: parent
color: "white"
- text: "Hello José!"
+ text: ""
font.pixelSize: 40
font.family: "Roboto"
SequentialAnimation on font.letterSpacing {
@@ -95,8 +106,9 @@ Item {
sign90.visible = show
}
- function showVisa(show) {
+ function showVisa(show, num) {
visa.visible = show
+ cardNumber.text = num;
}
GridView {
anchors.centerIn: parent