Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/Bookshelf.qml
Context not available. | |||||
92 | // }, | 92 | // }, | ||
---|---|---|---|---|---|
93 | Kirigami.Action { | 93 | Kirigami.Action { | ||
94 | text: i18nc("Open the book which is currently selected in the list", "Open Selected Book"); | 94 | text: i18nc("Open the book which is currently selected in the list", "Open Selected Book"); | ||
95 | shortcut: "Return"; | 95 | shortcut: bookDetails.sheetOpen? "" : "Return"; | ||
96 | iconName: "document-open"; | 96 | iconName: "document-open"; | ||
97 | onTriggered: openBook(shelfList.currentIndex); | 97 | onTriggered: openBook(shelfList.currentIndex); | ||
98 | enabled: root.isCurrentPage && applicationWindow().deviceType === applicationWindow().deviceTypeDesktop; | 98 | enabled: root.isCurrentPage && applicationWindow().deviceType === applicationWindow().deviceTypeDesktop; | ||
Context not available. | |||||
193 | property string thumbnail: ""; | 193 | property string thumbnail: ""; | ||
194 | property string currentPage: "0"; | 194 | property string currentPage: "0"; | ||
195 | property string totalPages: "0"; | 195 | property string totalPages: "0"; | ||
196 | property string comment: ""; | ||||
197 | property var tags: []; | ||||
198 | property var description: []; | ||||
199 | property string rating: "0"; | ||||
196 | } | 200 | } | ||
197 | ListComponents.BookTile { | 201 | ListComponents.BookTile { | ||
198 | id: detailsTile; | 202 | id: detailsTile; | ||
Context not available. | |||||
206 | categoryEntriesCount: 0; | 210 | categoryEntriesCount: 0; | ||
207 | currentPage: bookDetails.currentBook.readProperty("currentPage"); | 211 | currentPage: bookDetails.currentBook.readProperty("currentPage"); | ||
208 | totalPages: bookDetails.currentBook.readProperty("totalPages"); | 212 | totalPages: bookDetails.currentBook.readProperty("totalPages"); | ||
213 | description: bookDetails.currentBook.readProperty("description"); | ||||
214 | comment: bookDetails.currentBook.readProperty("comment")? bookDetails.currentBook.readProperty("comment"): ""; | ||||
215 | tags: bookDetails.currentBook.readProperty("tags")? bookDetails.currentBook.readProperty("tags"): []; | ||||
216 | rating: bookDetails.currentBook.readProperty("rating")? bookDetails.currentBook.readProperty("rating") : 0; | ||||
209 | onBookSelected: { | 217 | onBookSelected: { | ||
210 | bookDetails.close(); | 218 | bookDetails.close(); | ||
211 | applicationWindow().showBook(filename, currentPage); | 219 | applicationWindow().showBook(filename, currentPage); | ||
Context not available. |