Commit 88eb005c authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Fix regression introduced by previous QML commits

Now you can again swipe a pages and id is correct
parent d7f90b74
Pipeline #43754 passed with stage
in 10 minutes and 24 seconds
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment