Settings page was added

This commit is contained in:
2023-03-30 20:06:03 +02:00
parent 31cb989f67
commit 25e8a3ea79
16 changed files with 272 additions and 55 deletions

View File

@@ -5,7 +5,7 @@ import QtQuick.Layouts 1.15
import QtWebSockets
import ru.ded.beerlog 1.0
import "Components"
import Components 1.0
ApplicationWindow {
width: 640
@@ -16,15 +16,23 @@ ApplicationWindow {
header: ToolBar {
RowLayout {
anchors.fill: parent
MenuBackButton {
state: stackView.depth > 1 ? "back" : "menu"
onClicked: mainMenu.open()
onBack: stackView.pop()
}
ToolButton {
text: usersModel.selectedUserName
Label {
text: stackView.currentItem.title || usersModel.selectedUserName
Layout.fillWidth: true
onClicked: usersMenu.open()
horizontalAlignment: Qt.AlignCenter
MouseArea {
anchors.fill: parent
enabled: stackView.depth === 1
onClicked: usersMenu.open()
}
}
}
@@ -62,6 +70,7 @@ ApplicationWindow {
logo: "qrc:/logo.png"
appName: qsTr("BeerLog v0.1")
connected: beerService.connected
model: ListModel {
ListElement {