Changeset View
Changeset View
Standalone View
Standalone View
src/app/qml/listcomponents/CategoryTileTall.qml
Show All 18 Lines | |||||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.1 | 22 | import QtQuick 2.1 | ||
23 | import QtQuick.Controls 2.2 as QtControls | 23 | import QtQuick.Controls 2.2 as QtControls | ||
24 | 24 | | |||
25 | import org.kde.kirigami 2.1 as Kirigami | 25 | import org.kde.kirigami 2.1 as Kirigami | ||
26 | 26 | | |||
27 | /** | ||||
28 | * @brief A button to select a category to show the categories and books inside. | ||||
29 | * | ||||
30 | * It distinguishes itself from a book by drawing two rectangles behind the thumbnail, | ||||
31 | * to indicate 'multiple books'. | ||||
32 | */ | ||||
27 | Item { | 33 | Item { | ||
28 | id: root; | 34 | id: root; | ||
29 | property bool selected: false; | 35 | property bool selected: false; | ||
30 | property alias count: categoryCount.text; | 36 | property alias count: categoryCount.text; | ||
31 | property alias title: categoryTitle.text | 37 | property alias title: categoryTitle.text | ||
32 | property QtObject entriesModel; | 38 | property QtObject entriesModel; | ||
33 | property int neededHeight: categoryImage.height + categoryTitle.height + Kirigami.Units.largeSpacing; | 39 | property int neededHeight: categoryImage.height + categoryTitle.height + Kirigami.Units.largeSpacing; | ||
34 | visible: height > 0; | 40 | visible: height > 0; | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |