Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/Bookshelf.qml
Show First 20 Lines • Show All 167 Lines • ▼ Show 20 Line(s) | 162 | ListComponents.BookTileTall { | |||
---|---|---|---|---|---|
168 | filename: model.filename; | 168 | filename: model.filename; | ||
169 | thumbnail: model.categoryEntriesCount < 1 ? model.thumbnail : ""; | 169 | thumbnail: model.categoryEntriesCount < 1 ? model.thumbnail : ""; | ||
170 | categoryEntriesCount: model.categoryEntriesCount; | 170 | categoryEntriesCount: model.categoryEntriesCount; | ||
171 | currentPage: model.currentPage; | 171 | currentPage: model.currentPage; | ||
172 | totalPages: model.totalPages; | 172 | totalPages: model.totalPages; | ||
173 | onBookSelected: root.bookSelected(filename, currentPage); | 173 | onBookSelected: root.bookSelected(filename, currentPage); | ||
174 | selected: shelfList.currentIndex === index; | 174 | selected: shelfList.currentIndex === index; | ||
175 | onPressAndHold: bookDetails.showBookInfo(model.index); | 175 | onPressAndHold: bookDetails.showBookInfo(model.index); | ||
176 | pressIndicator: true; | ||||
176 | } | 177 | } | ||
177 | } | 178 | } | ||
178 | } | 179 | } | ||
179 | 180 | | |||
180 | Kirigami.OverlaySheet { | 181 | Kirigami.OverlaySheet { | ||
181 | id: bookDetails; | 182 | id: bookDetails; | ||
182 | function showBookInfo(index) { | 183 | function showBookInfo(index) { | ||
183 | currentBook = root.model.getEntry(index); | 184 | currentBook = root.model.getEntry(index); | ||
Show All 35 Lines |