Move all subpages to MainPage for faster access

This commit is contained in:
Matti Viljanen 2022-08-28 10:14:46 +03:00
parent b1ab73eec0
commit 65cf70c15e
No known key found for this signature in database
GPG key ID: CF32A1495158F888
2 changed files with 8 additions and 11 deletions

View file

@ -69,6 +69,14 @@ Page {
text: qsTr("Background", "More to read, background information...")
onClicked: pageStack.push(Qt.resolvedUrl("InfoPage.qml"))
}
MenuItem {
text: qsTr("About", "About this application")
onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
}
MenuItem {
text: qsTr("View log")
onClicked: pageStack.push(Qt.resolvedUrl("LogPage.qml"))
}
}
// Place our content in a Column. The PageHeader is always placed at the top

View file

@ -67,17 +67,6 @@ Page {
anchors.fill: parent
contentHeight: flow.height + Theme.horizontalPageMargin
PullDownMenu {
MenuItem {
text: qsTr("View log")
onClicked: pageStack.push(Qt.resolvedUrl("LogPage.qml"))
}
MenuItem {
text: qsTr("About", "About this application")
onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
}
}
Flow {
id: flow
anchors {