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

35 lines
738 B
QML
Raw Normal View History

2020-05-27 21:28:25 +00:00
import QtQuick 2.3
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.3
import "../../../../imports"
import "../../../../shared"
2020-05-27 21:28:25 +00:00
Item {
id: signoutContainer
width: 200
height: 200
Layout.fillHeight: true
Layout.fillWidth: true
Text {
id: txtTitle
2020-05-27 21:28:25 +00:00
text: qsTr("Sign out controls")
anchors.left: parent.left
anchors.leftMargin: 24
anchors.top: parent.top
anchors.topMargin: 24
font.weight: Font.Bold
font.pixelSize: 20
}
StyledButton {
id: btnLogout
anchors.top: txtTitle.bottom
anchors.topMargin: Theme.padding
label: qsTr("Logout")
onClicked: {
profileModel.logout();
}
}
2020-05-27 21:28:25 +00:00
}