From 7d11099e5afd1f16c811ccbe954a158105be36ab Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Sat, 18 Jul 2020 16:45:50 +0200 Subject: Add pinChange() function --- main.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'main.qml') diff --git a/main.qml b/main.qml index 20a1da6..1e6b242 100644 --- a/main.qml +++ b/main.qml @@ -84,8 +84,14 @@ Window { id: pin_text x: 235 width: 210 - height: 50 - text: qsTr("0 1 A 2 3 B") + height: 28 + // ':' translation info + //: Do not translate! + //: This is just the pin which is used to authenticate to remote web app (django) frontend + text: qsTr("%1").arg(pin) + property string pin: "-----" + font.letterSpacing: 10 + anchors.horizontalCenterOffset: 0 font.pixelSize: 26 anchors.horizontalCenter: your_pin_text.horizontalCenter anchors.top: your_pin_text.bottom -- cgit v1.2.3