Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/Book.qml
Context not available. | |||||
422 | property bool controlsShown; | 422 | property bool controlsShown; | ||
---|---|---|---|---|---|
423 | property QtObject currentBook: fakeBook; | 423 | property QtObject currentBook: fakeBook; | ||
424 | property QtObject fakeBook: Peruse.PropertyContainer { | 424 | property QtObject fakeBook: Peruse.PropertyContainer { | ||
425 | property string author: ""; | 425 | property var author: [""]; | ||
426 | property string title: ""; | 426 | property string title: ""; | ||
427 | property string filename: ""; | 427 | property string filename: ""; | ||
428 | property string publisher: ""; | 428 | property string publisher: ""; | ||
429 | property string thumbnail: ""; | 429 | property string thumbnail: ""; | ||
430 | property string currentPage: "0"; | 430 | property string currentPage: "0"; | ||
431 | property string totalPages: "0"; | 431 | property string totalPages: "0"; | ||
432 | property string comment: ""; | ||||
433 | property var tags: [""]; | ||||
434 | property var description: [""]; | ||||
435 | property string rating: "0"; | ||||
432 | } | 436 | } | ||
433 | Column { | 437 | Column { | ||
434 | clip: true; | 438 | clip: true; | ||
Context not available. | |||||
447 | categoryEntriesCount: 0; | 451 | categoryEntriesCount: 0; | ||
448 | currentPage: bookInfo.currentBook.readProperty("currentPage"); | 452 | currentPage: bookInfo.currentBook.readProperty("currentPage"); | ||
449 | totalPages: bookInfo.currentBook.readProperty("totalPages"); | 453 | totalPages: bookInfo.currentBook.readProperty("totalPages"); | ||
454 | description: bookInfo.currentBook.readProperty("description"); | ||||
455 | comment: bookInfo.currentBook.readProperty("comment")? bookInfo.currentBook.readProperty("comment"): ""; | ||||
456 | tags: bookInfo.currentBook.readProperty("tags")? bookInfo.currentBook.readProperty("tags"): []; | ||||
457 | rating: bookInfo.currentBook.readProperty("rating")? bookInfo.currentBook.readProperty("rating"): 0; | ||||
450 | onBookSelected: { | 458 | onBookSelected: { | ||
451 | if(root.file !== filename) { | 459 | if(root.file !== filename) { | ||
452 | openSelected(); | 460 | openSelected(); | ||
Context not available. | |||||
470 | orientation: ListView.Horizontal; | 478 | orientation: ListView.Horizontal; | ||
471 | NumberAnimation { id: seriesListAnimation; target: seriesListView; property: "contentX"; duration: applicationWindow().animationDuration; easing.type: Easing.InOutQuad; } | 479 | NumberAnimation { id: seriesListAnimation; target: seriesListView; property: "contentX"; duration: applicationWindow().animationDuration; easing.type: Easing.InOutQuad; } | ||
472 | delegate: ListComponents.BookTileTall { | 480 | delegate: ListComponents.BookTileTall { | ||
473 | height: model.filename != "" ? neededHeight : 1; | 481 | height: model.filename !== "" ? neededHeight : 1; | ||
474 | width: seriesListView.width / 3; | 482 | width: seriesListView.width / 3; | ||
475 | author: model.author; | 483 | author: model.author; | ||
476 | title: model.title; | 484 | title: model.title; | ||
Context not available. |