AusweisApp2/resources/qml/Governikus/PinView/+ios/PinViewContent.qml

64 lines
1.6 KiB
QML
Raw Normal View History

2017-07-03 09:30:10 +02:00
import QtQuick 2.5
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
2017-07-03 09:30:10 +02:00
Item {
2017-07-03 09:33:28 +02:00
readonly property int spacing: (height - pinHeader.height - pinDesc.height - pinIcon.height - govButton.height - Utils.dp(40)) / 3
2017-07-03 09:30:10 +02:00
Text {
id: pinHeader
2017-12-20 14:54:05 +01:00
text: qsTr("PIN Management") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
anchors.top: parent.top
2017-07-03 09:33:28 +02:00
anchors.topMargin: spacing
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: Constants.header_font_size
color: Constants.blue
}
Text {
id: pinDesc
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:30:10 +02:00
width: parent.width * 0.9
2017-12-20 14:54:05 +01:00
text: qsTr("You have the opportunity to change your transport PIN into a personal PIN. You can also change the PIN at any time or unblock the PIN using the personal unblocking key (PUK). The transport PIN and the PUK can be found in the letter sent to you by your competent authority.") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
font.pixelSize: Constants.normal_font_size
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
anchors.top: pinHeader.bottom
2017-07-03 09:33:28 +02:00
anchors.topMargin: Utils.dp(10)
2017-07-03 09:30:10 +02:00
anchors.horizontalCenter: parent.horizontalCenter
}
Image {
id: pinIcon
2017-12-20 14:54:05 +01:00
height: parent.height * 0.25
width: height
2017-07-03 09:30:10 +02:00
anchors.top: pinDesc.bottom
2017-07-03 09:33:28 +02:00
anchors.topMargin: spacing
anchors.horizontalCenter: parent.horizontalCenter
2017-12-20 14:54:05 +01:00
fillMode: Image.PreserveAspectFit
smooth: true
source: "qrc:///images/icon_Pin.svg"
2017-07-03 09:30:10 +02:00
}
2017-12-20 14:54:05 +01:00
GButton {
2017-07-03 09:30:10 +02:00
id: govButton
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: Utils.dp(30)
2017-12-20 14:54:05 +01:00
text: qsTr("Change PIN now") + settingsModel.translationTrigger
2017-07-03 09:30:10 +02:00
onClicked: changePinModel.startWorkflow()
}
}