Commit 197e0dd7 authored by camilo higuita's avatar camilo higuita

fixes

parent 118be7ac
......@@ -15,6 +15,8 @@ Item
onCurrentBookletChanged:
{
editor.document.load(currentBooklet.url)
_drawerPage.title = currentBook.title
}
Maui.BaseModel
......@@ -100,22 +102,26 @@ Item
}
}
Connections
{
target: root
onCurrentViewChanged: _drawer.close()
}
Kirigami.OverlayDrawer
{
id: _drawer
edge: Qt.RightEdge
width: Kirigami.Units.gridUnit * 16
height: parent.height - _page.headBar.height
y: _page.headBar.height
height: parent.height - _page.headBar.height
y: _page.headBar.height
modal: !isWide
visible: _holder.visible
contentItem: Maui.Page
{
id: _drawerPage
anchors.fill: parent
title: "argh"
headBar.visible: true
headBar.rightContent: ToolButton
{
......
......@@ -14,6 +14,7 @@ StackView
property alias list : _booksList
property alias cardsView : cardsView
property bool showDetails: false
property var currentBook : ({})
StackView
{
......@@ -159,6 +160,7 @@ StackView
{
console.log("BOOKLET CLICKED", index)
cardsView.currentIndex = index
control.currentBook = _booksList.get(index)
_stackView.push(_bookletComponent)
}
}
......
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