status-desktop/ui/app/AppLayouts/Profile/Sections/SignoutContainer.qml

42 lines
924 B
QML
Raw Normal View History

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"
import "../../../../shared"
import "../../../../shared/status"
2020-05-27 21:28:25 +00:00
Item {
id: signoutContainer
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true
StyledText {
id: txtTitle
//% "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
}
StatusButton {
id: btnLogout
anchors.top: txtTitle.bottom
anchors.topMargin: Style.current.padding
//% "Logout"
// text: qsTrId("logout")
//% "Exit"
text: qsTrId("exit")
onClicked: {
// profileModel.logout();
Qt.quit();
}
}
2020-06-17 19:18:31 +00:00
}