AusweisApp2/resources/qml/Governikus/FeedbackView/Feedback.qml

120 lines
3.9 KiB
QML
Raw Normal View History

2017-07-03 09:33:28 +02:00
import QtQuick 2.7
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.0
2017-12-20 14:54:05 +01:00
import Governikus.Global 1.0
import Governikus.TitleBar 1.0
2017-07-03 09:33:28 +02:00
SectionPage {
id: root
2017-12-20 14:54:05 +01:00
headerTitleBarAction: TitleBarAction { text: qsTr("Help & Feedback") + settingsModel.translationTrigger; font.bold: true }
2017-07-03 09:33:28 +02:00
Component {
id: lineSeparator
Rectangle {
height: 1
color: Constants.grey
}
}
Component {
id: subMenu
Item {
height: column.height
Column {
id: column
anchors.left: parent.left
anchors.right: parent.right
spacing: Constants.component_spacing
Text {
width: parent.width
font.pixelSize: Utils.sp(18)
color: Constants.blue
wrapMode: Text.WordWrap
text: titleText
}
Text {
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:33:28 +02:00
width: parent.width
font.pixelSize: Constants.normal_font_size
wrapMode: Text.WordWrap
text: descriptionText
}
}
MouseArea {
anchors.fill: parent
onClicked: onClickFunction()
}
}
}
content: Item {
width: root.width
height: childrenRect.height
Column {
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Constants.component_spacing
spacing: Constants.component_spacing
padding: Constants.component_spacing
Text {
id: title
anchors.left: parent.left
anchors.right: parent.right
2017-12-20 14:54:05 +01:00
text: qsTr("Your opinion matters") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
font.pixelSize: Constants.header_font_size
color: Constants.blue
wrapMode: Text.WordWrap
}
Text {
id: subtitle
2018-03-28 15:10:51 +02:00
color: Constants.secondary_text
2017-07-03 09:33:28 +02:00
anchors.left: parent.left
anchors.right: parent.right
2017-12-20 14:54:05 +01:00
text: qsTr("We are happy about every feedback on our software.") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
font.pixelSize: Constants.normal_font_size
wrapMode: Text.WordWrap
}
Pane {
Loader {
2017-12-20 14:54:05 +01:00
readonly property string titleText: qsTr("FAQ") + settingsModel.translationTrigger
readonly property string descriptionText: qsTr("Do you have questions how to use AusweisApp2?") + settingsModel.translationTrigger
function onClickFunction() { Qt.openUrlExternally(qsTr("https://www.ausweisapp.bund.de/en/questions-and-answers/frequently-asked-questions/")) }
2017-07-03 09:33:28 +02:00
width: parent.width
sourceComponent: subMenu
}
Loader { width: parent.width; sourceComponent: lineSeparator }
Loader {
2017-12-20 14:54:05 +01:00
readonly property string titleText: qsTr("Support") + settingsModel.translationTrigger
readonly property string descriptionText: qsTr("You need further help?") + settingsModel.translationTrigger
function onClickFunction() { Qt.openUrlExternally(qsTr("https://www.ausweisapp.bund.de/en/questions-and-answers/support/")) }
width: parent.width
sourceComponent: subMenu
}
Loader { width: parent.width; sourceComponent: lineSeparator }
Loader {
readonly property string titleText: qsTr("Rate AusweisApp2") + settingsModel.translationTrigger
readonly property string descriptionText: qsTr("Please rate us in the Google Play Store.") + settingsModel.translationTrigger
function onClickFunction() { Qt.openUrlExternally("market://details?id=com.governikus.ausweisapp2") }
2017-07-03 09:33:28 +02:00
width: parent.width
sourceComponent: subMenu
}
Loader { width: parent.width; sourceComponent: lineSeparator }
Loader {
2017-12-20 14:54:05 +01:00
readonly property string titleText: qsTr("Report error") + settingsModel.translationTrigger
readonly property string descriptionText: qsTr("You found a bug? Please tell us, so we can fix it.") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
readonly property string emailAddress: "support.ausweisapp2@governikus.de"
2017-12-20 14:54:05 +01:00
readonly property string emailSubject: qsTr("Android log file") + settingsModel.translationTrigger
readonly property string emailBody: qsTr("<Please describe the error>") + settingsModel.translationTrigger
2017-07-03 09:33:28 +02:00
function onClickFunction() { qmlExtension.mailLog(emailAddress, emailSubject, emailBody) }
width: parent.width
sourceComponent: subMenu
}
}
}
}
}