Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/Bookshelf.qml
Show All 22 Lines | |||||
23 | import QtQuick.Layouts 1.1 | 23 | import QtQuick.Layouts 1.1 | ||
24 | import QtQuick.Controls 1.4 as QtControls | 24 | import QtQuick.Controls 1.4 as QtControls | ||
25 | 25 | | |||
26 | import org.kde.kirigami 2.1 as Kirigami | 26 | import org.kde.kirigami 2.1 as Kirigami | ||
27 | 27 | | |||
28 | import org.kde.peruse 0.1 as Peruse | 28 | import org.kde.peruse 0.1 as Peruse | ||
29 | 29 | | |||
30 | import "listcomponents" as ListComponents | 30 | import "listcomponents" as ListComponents | ||
31 | 31 | /** | |||
32 | * @brief This lays out the books and categories. | ||||
33 | * | ||||
34 | * It uses BookTileTall for the books and CategoryTileTall | ||||
35 | * for showing the categories. Categories can be selected to open | ||||
36 | * a new bookshelf from the right, showing the entries in that | ||||
37 | * subcategory. This is particularly in use with the folder category. | ||||
38 | * | ||||
39 | * There is also access to the SearchBox, and it is possible to access | ||||
40 | * a BookTile by press+holding the thumbnail. | ||||
41 | * This holds information about the book. | ||||
42 | */ | ||||
32 | Kirigami.ScrollablePage { | 43 | Kirigami.ScrollablePage { | ||
33 | id: root; | 44 | id: root; | ||
34 | title: headerText; | 45 | title: headerText; | ||
35 | property string categoryName: "bookshelf"; | 46 | property string categoryName: "bookshelf"; | ||
36 | objectName: "bookshelf"; | 47 | objectName: "bookshelf"; | ||
37 | property alias model: shelfList.model; | 48 | property alias model: shelfList.model; | ||
38 | property string sectionRole: "title"; | 49 | property string sectionRole: "title"; | ||
39 | property int sectionCriteria: ViewSection.FirstCharacter; | 50 | property int sectionCriteria: ViewSection.FirstCharacter; | ||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |