Fix kf6 globaldrawer loading issue
This commit is contained in:
parent
ef627c047e
commit
e20509f621
@ -124,11 +124,11 @@ Kirigami.ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
globalDrawer: sidebar.item
|
property bool showGlobalDrawer: !Kirigami.Settings.isMobile || kastsMainWindow.isWidescreen
|
||||||
Loader {
|
|
||||||
id: sidebar
|
globalDrawer: showGlobalDrawer ? myGlobalDrawer : null
|
||||||
active: !Kirigami.Settings.isMobile || kastsMainWindow.isWidescreen
|
|
||||||
sourceComponent: Kirigami.OverlayDrawer {
|
property Kirigami.OverlayDrawer myGlobalDrawer: Kirigami.OverlayDrawer {
|
||||||
id: drawer
|
id: drawer
|
||||||
modal: false
|
modal: false
|
||||||
closePolicy: Controls.Popup.NoAutoClose
|
closePolicy: Controls.Popup.NoAutoClose
|
||||||
@ -138,7 +138,7 @@ Kirigami.ApplicationWindow {
|
|||||||
readonly property real widescreenBigWidth: Kirigami.Units.gridUnit * 10
|
readonly property real widescreenBigWidth: Kirigami.Units.gridUnit * 10
|
||||||
readonly property int buttonDisplayMode: kastsMainWindow.isWidescreen ? Kirigami.NavigationTabButton.TextBesideIcon : Kirigami.NavigationTabButton.IconOnly
|
readonly property int buttonDisplayMode: kastsMainWindow.isWidescreen ? Kirigami.NavigationTabButton.TextBesideIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
|
|
||||||
width: kastsMainWindow.isWidescreen ? widescreenBigWidth : pinnedWidth
|
width: showGlobalDrawer ? (kastsMainWindow.isWidescreen ? widescreenBigWidth : pinnedWidth) : 0
|
||||||
|
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
Kirigami.Theme.colorSet: Kirigami.Theme.Window
|
||||||
Kirigami.Theme.inherit: false
|
Kirigami.Theme.inherit: false
|
||||||
@ -148,7 +148,11 @@ Kirigami.ApplicationWindow {
|
|||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: Loader {
|
||||||
|
id: sidebarColumn
|
||||||
|
active: showGlobalDrawer
|
||||||
|
|
||||||
|
sourceComponent: ColumnLayout {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Controls.ToolBar {
|
Controls.ToolBar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user