Some refactor
This commit is contained in:
37 files changed
+1599
-981
No files matched your search
@@ -73,7 +73,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
SideBarButton {
|
||||
visible: bookController.hasBook
|
||||
visible: book.hasBook
|
||||
iconText: "\ue5cd"
|
||||
title: "Close Book"
|
||||
onClicked: sidebar.closeBook()
|
||||
@@ -114,7 +114,7 @@ Rectangle {
|
||||
|
||||
// TOC section — shown when the current book has a table of contents
|
||||
Item {
|
||||
visible: bookController.hasBook && bookController.toc.length > 0
|
||||
visible: book.hasBook && book.toc.length > 0
|
||||
anchors.top: navColumn.bottom
|
||||
anchors.bottom: parent.bottom
|
||||
width: parent.width
|
||||
@@ -145,7 +145,7 @@ Rectangle {
|
||||
anchors.bottom: parent.bottom
|
||||
width: parent.width
|
||||
clip: true
|
||||
model: bookController.toc
|
||||
model: book.toc
|
||||
|
||||
delegate: Rectangle {
|
||||
width: ListView.view.width
|
||||
|
||||
Reference in new issue
Block a user