Fix regression introduced by previous QML commits

Now you can again swipe a pages and id is correct
This commit is contained in:
Carl Schwan 2020-12-11 15:38:47 +01:00
parent d7f90b74a3
commit 88eb005c93

View file

@ -24,7 +24,7 @@ import org.kde.kirigami 2.10 as Kirigami
import org.kde.okular.app 2.0
Kirigami.ApplicationWindow {
id: root
id: fileBrowserRoot
readonly property int columnWidth: Kirigami.Units.gridUnit * 13
@ -65,7 +65,7 @@ Kirigami.ApplicationWindow {
}
contextDrawer: OkularDrawer {
contentItem.implicitWidth: columnWidth
modal: !root.wideScreen
modal: !fileBrowserRoot.wideScreen
onModalChanged: drawerOpen = !modal
enabled: documentItem.opened && pageStack.layers.depth < 2
handleVisible: enabled && pageStack.layers.depth < 2
@ -80,6 +80,7 @@ Kirigami.ApplicationWindow {
pageStack.initialPage: MainView {
id: pageArea
document: documentItem
Kirigami.ColumnView.preventStealing: true
}
Component {