AusweisApp2/resources/qml/Governikus/IdentifyView/SelfAuthenticationData.qml

88 lines
2.3 KiB
QML
Raw Normal View History

2017-07-03 09:33:28 +02:00
import QtQuick 2.7
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
import Governikus.TitleBar 1.0
2017-07-03 09:30:10 +02:00
SectionPage {
id: root
2017-12-20 14:54:05 +01:00
leftTitleBarAction: TitleBarAction { state: "cancel"; onClicked: root.close() }
headerTitleBarAction: TitleBarAction { text: qsTr("Identify") + settingsModel.translationTrigger; font.bold: true }
2017-07-03 09:30:10 +02:00
function close() {
2017-07-03 09:33:28 +02:00
numberModel.continueWorkflow()
2017-12-20 14:54:05 +01:00
firePopAll()
2017-07-03 09:30:10 +02:00
navBar.lockedAndHidden = false
}
2017-07-03 09:33:28 +02:00
content: Item {
height: content.height + okButton.height + Constants.component_spacing
width: root.width
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Column {
id: content
width: parent.width
padding: Constants.component_spacing
spacing: Constants.component_spacing
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Item {
id: message
height: Utils.dp(60)
width: resultImage.width + Constants.component_spacing + successText.width
anchors.horizontalCenter: parent.horizontalCenter
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Image {
id: resultImage
anchors.top: parent.top
anchors.verticalCenter: parent.verticalCenter
height: parent.height
width: height
fillMode: Image.PreserveAspectFit
source: "qrc:///images/gruener_Haken.svg"
}
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Text {
id: successText
anchors.left: resultImage.right
anchors.leftMargin: Constants.component_spacing
anchors.verticalCenter: resultImage.verticalCenter
2017-12-20 14:54:05 +01:00
text: qsTr("Successfull reading data") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
font.pixelSize: PlatformConstants.is_tablet ? Constants.header_font_size : Constants.normal_font_size
color: Constants.blue
}
}
2017-07-03 09:30:10 +02:00
2017-07-03 09:33:28 +02:00
Pane {
id: pane
anchors.leftMargin: Constants.component_spacing
anchors.rightMargin: Constants.component_spacing
2017-07-03 09:30:10 +02:00
Grid {
id: grid
2017-07-03 09:33:28 +02:00
width: parent.width
2017-07-03 09:30:10 +02:00
columns: PlatformConstants.is_tablet ? 3 : 1
spacing: Utils.dp(15)
verticalItemAlignment: Grid.AlignBottom
Repeater {
model: selfAuthenticationModel
LabeledText {
label: name
text: value === "" ? "---" : value
2017-07-03 09:33:28 +02:00
width: (pane.width - 2 * Constants.pane_padding - (grid.columns - 1) * grid.spacing) / grid.columns
2017-07-03 09:30:10 +02:00
}
}
}
}
}
2017-07-03 09:33:28 +02:00
}
2017-07-03 09:30:10 +02:00
2017-12-20 14:54:05 +01:00
GButton {
2017-07-03 09:33:28 +02:00
id: okButton
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: Constants.component_spacing
2018-03-28 15:10:51 +02:00
text: qsTr("OK") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
onClicked: root.close()
2017-07-03 09:30:10 +02:00
}
}