Group pageStack properties of the ApplicationWindow together
This commit is contained in:
@@ -17,19 +17,26 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
property int columnWidth: Kirigami.Units.gridUnit * 13
|
property int columnWidth: Kirigami.Units.gridUnit * 13
|
||||||
|
|
||||||
|
property RoomList.Page roomListPage
|
||||||
|
property bool roomListLoaded: false
|
||||||
|
|
||||||
|
property RoomPage roomPage
|
||||||
|
|
||||||
minimumWidth: Kirigami.Units.gridUnit * 20
|
minimumWidth: Kirigami.Units.gridUnit * 20
|
||||||
minimumHeight: Kirigami.Units.gridUnit * 15
|
minimumHeight: Kirigami.Units.gridUnit * 15
|
||||||
|
|
||||||
visible: false // Will be overridden in Component.onCompleted
|
visible: false // Will be overridden in Component.onCompleted
|
||||||
wideScreen: width > columnWidth * 5
|
wideScreen: width > columnWidth * 5
|
||||||
|
|
||||||
pageStack.initialPage: LoadingPage {}
|
pageStack {
|
||||||
pageStack.globalToolBar.canContainHandles: true
|
initialPage: LoadingPage {}
|
||||||
|
globalToolBar.canContainHandles: true
|
||||||
property RoomList.Page roomListPage
|
defaultColumnWidth: roomListPage ? roomListPage.currentWidth : 0
|
||||||
property bool roomListLoaded: false
|
globalToolBar {
|
||||||
|
style: Kirigami.ApplicationHeaderStyle.ToolBar
|
||||||
property RoomPage roomPage
|
showNavigationButtons: pageStack.currentIndex > 0 || pageStack.layers.depth > 1 ? Kirigami.ApplicationHeaderStyle.ShowBackButton : 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.quitAction
|
target: root.quitAction
|
||||||
@@ -152,10 +159,6 @@ Kirigami.ApplicationWindow {
|
|||||||
handleVisible: enabled
|
handleVisible: enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
pageStack.defaultColumnWidth: roomListPage ? roomListPage.currentWidth : 0
|
|
||||||
pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.ToolBar
|
|
||||||
pageStack.globalToolBar.showNavigationButtons: pageStack.currentIndex > 0 || pageStack.layers.depth > 1 ? Kirigami.ApplicationHeaderStyle.ShowBackButton : 0
|
|
||||||
|
|
||||||
Dialog.ConfirmLogout {
|
Dialog.ConfirmLogout {
|
||||||
id: confirmLogoutDialog
|
id: confirmLogoutDialog
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user