2019-09-26 22:34:51 +02:00
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
import QtQuick.Dialogs 1.3
|
|
|
|
import QtAndroidTools 1.0
|
|
|
|
|
|
|
|
Page {
|
|
|
|
id: page
|
|
|
|
padding: 0
|
|
|
|
|
2019-09-29 21:49:23 +02:00
|
|
|
Connections {
|
|
|
|
target: QtAndroidGoogleAccount
|
|
|
|
onSignedIn: {
|
|
|
|
if(signInSuccessfully === true)
|
|
|
|
{
|
|
|
|
accountPhoto.source = "image://LastSignedInAccountPhoto/";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-26 22:34:51 +02:00
|
|
|
Column {
|
2019-09-29 21:49:23 +02:00
|
|
|
width: parent.width * 0.9
|
|
|
|
height: parent.height * 0.9
|
|
|
|
anchors.centerIn: parent
|
2019-09-26 22:34:51 +02:00
|
|
|
spacing: 5
|
|
|
|
|
|
|
|
Label {
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "Id:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: QtAndroidGoogleAccount.lastSignedInAccount.id
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "DisplayName:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: QtAndroidGoogleAccount.lastSignedInAccount.displayName
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "Email:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: QtAndroidGoogleAccount.lastSignedInAccount.email
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "FamilyName:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: QtAndroidGoogleAccount.lastSignedInAccount.familyName
|
|
|
|
}
|
|
|
|
|
|
|
|
Label {
|
|
|
|
font.bold: true
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: "GivenName:"
|
|
|
|
}
|
|
|
|
Label {
|
|
|
|
font.pixelSize: 15
|
|
|
|
text: QtAndroidGoogleAccount.lastSignedInAccount.givenName
|
|
|
|
}
|
|
|
|
|
2019-09-27 16:13:24 +02:00
|
|
|
Image {
|
2019-09-29 21:49:23 +02:00
|
|
|
id: accountPhoto
|
2019-09-27 16:13:24 +02:00
|
|
|
width: 200
|
|
|
|
height: 200
|
|
|
|
}
|
|
|
|
|
2019-09-26 22:34:51 +02:00
|
|
|
Button {
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
text: "sigIn"
|
2019-09-29 21:49:23 +02:00
|
|
|
onClicked: QtAndroidGoogleAccount.signIn(true)
|
2019-09-26 22:34:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|