2017-07-03 09:30:10 +02:00
import QtQuick 2.5
import QtQuick . Layouts 1.2
import "../"
import "../global"
SectionPage {
headerTitleBarAction: TitleBarAction { text: qsTr ( "More" ) ; font.bold: true }
Rectangle {
anchors.fill: menu
color: "white"
}
Column {
id: menu
width: parent . width
anchors.top: parent . top
anchors.topMargin: Utils . dp ( 40 )
MoreViewMenuItem {
text: qsTr ( "Version information" )
2017-07-03 09:33:28 +02:00
imageSource: "qrc:///images/npa.svg"
2017-07-03 09:30:10 +02:00
onClicked: push ( versionInformationPage )
}
MoreViewMenuItem {
text: qsTr ( "FAQ" )
2017-07-03 09:33:28 +02:00
imageSource: "qrc:///images/iOS/more/icon_mehr_info.svg"
2017-07-03 09:30:10 +02:00
onClicked: Qt . openUrlExternally ( "https://www.ausweisapp.bund.de/service/haeufig-gestellte-fragen/" )
}
MoreViewMenuItem {
text: qsTr ( "Support" )
2017-07-03 09:33:28 +02:00
imageSource: "qrc:///images/iOS/more/icon_mehr_fragen.svg"
2017-07-03 09:30:10 +02:00
onClicked: push ( supportPage )
}
MoreViewMenuItem {
text: qsTr ( "Rate app" ) ;
2017-07-03 09:33:28 +02:00
imageSource: "qrc:///images/iOS/more/icon_mehr_favorit.svg" ;
2017-07-03 09:30:10 +02:00
// Use Qt.platform.os here instead of platformstyle because rating market URLs on iOS doesn't work and vice versa
onClicked: {
if ( Qt . platform . os === "android" ) {
Qt . openUrlExternally ( "market://details?id=com.governikus.ausweisapp2" )
}
else if ( Qt . platform . os === "ios" ) {
2017-09-15 10:23:30 +02:00
Qt . openUrlExternally ( "https://www.ausweisapp.bund.de/en/questions-and-answers/evaluate-us/" )
2017-07-03 09:30:10 +02:00
}
}
}
MoreViewMenuItem {
text: qsTr ( "Share" ) ;
2017-07-03 09:33:28 +02:00
imageSource: "qrc:///images/iOS/more/icon_mehr_upload.svg" ;
2017-09-15 10:23:30 +02:00
onClicked: qmlExtension . shareText ( qsTr ( "I'm using Ausweisapp2, download it here for Android: https://play.google.com/store/apps/details?id=com.governikus.ausweisapp2" ) , qsTr ( "Share with" ) )
2017-07-03 09:30:10 +02:00
}
MoreViewMenuItem {
visible: plugin . developerBuild
text: qsTr ( "Developer options" )
imageSource: "qrc:///images/zahnraeder.svg"
onClicked: push ( developerView )
}
}
Rectangle {
anchors.top: menu . top
height: 1 ; width: parent . width
color: Constants . grey
}
Rectangle {
anchors.bottom: menu . bottom
height: 1 ; width: parent . width
color: Constants . grey
}
VersionInformation {
id: versionInformationPage
visible: false
}
SupportView {
id: supportPage
visible: false
}
DeveloperView {
id: developerView
visible: false
}
}