2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-27 21:28:25 +00:00
|
|
|
import "../../../../imports"
|
2020-06-04 07:38:24 +00:00
|
|
|
import "../../../../shared"
|
2021-01-28 11:04:10 +00:00
|
|
|
import "../../../../shared/status"
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: signoutContainer
|
|
|
|
width: 200
|
|
|
|
height: 200
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2021-04-08 15:44:58 +00:00
|
|
|
clip: true
|
2020-05-27 21:28:25 +00:00
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-04 07:38:24 +00:00
|
|
|
id: txtTitle
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Sign out controls"
|
|
|
|
text: qsTrId("sign-out-controls")
|
2020-05-27 21:28:25 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
|
|
|
}
|
2020-06-04 07:38:24 +00:00
|
|
|
|
2021-01-28 11:04:10 +00:00
|
|
|
StatusButton {
|
2020-06-04 07:38:24 +00:00
|
|
|
id: btnLogout
|
|
|
|
anchors.top: txtTitle.bottom
|
2020-07-02 15:14:31 +00:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Logout"
|
2021-01-28 11:04:10 +00:00
|
|
|
// text: qsTrId("logout")
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Exit"
|
2021-01-28 11:04:10 +00:00
|
|
|
text: qsTrId("exit")
|
2020-06-04 07:38:24 +00:00
|
|
|
|
|
|
|
onClicked: {
|
2020-06-17 16:13:13 +00:00
|
|
|
// profileModel.logout();
|
|
|
|
Qt.quit();
|
2020-06-04 07:38:24 +00:00
|
|
|
}
|
|
|
|
}
|
2020-06-17 19:18:31 +00:00
|
|
|
}
|