Settings page was added
This commit is contained in:
17
qml/main.qml
17
qml/main.qml
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user