Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationDelegate.qml
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 62 | anchors { | |||
---|---|---|---|---|---|
63 | verticalCenter: parent.verticalCenter | 63 | verticalCenter: parent.verticalCenter | ||
64 | right: parent.right | 64 | right: parent.right | ||
65 | left: resourceIcon.right | 65 | left: resourceIcon.right | ||
66 | leftMargin: Kirigami.Units.largeSpacing | 66 | leftMargin: Kirigami.Units.largeSpacing | ||
67 | } | 67 | } | ||
68 | columns: 2 | 68 | columns: 2 | ||
69 | rows: delegateArea.compact ? 4 : 3 | 69 | rows: delegateArea.compact ? 4 : 3 | ||
70 | 70 | | |||
71 | RowLayout { | ||||
72 | Layout.fillWidth: true | ||||
73 | | ||||
71 | Kirigami.Heading { | 74 | Kirigami.Heading { | ||
72 | id: head | 75 | id: head | ||
73 | level: delegateArea.compact ? 3 : 2 | 76 | level: delegateArea.compact ? 3 : 2 | ||
74 | Layout.fillWidth: true | 77 | Layout.fillWidth: !category.visible | ||
apol: just `Layout.fillWidth: !category.visible`. | |||||
75 | elide: Text.ElideRight | 78 | elide: Text.ElideRight | ||
76 | text: delegateArea.application.name | 79 | text: delegateArea.application.name | ||
77 | maximumLineCount: 1 | 80 | maximumLineCount: 1 | ||
78 | } | 81 | } | ||
79 | 82 | | |||
83 | Kirigami.Heading { | ||||
84 | id: category | ||||
85 | level: 5 | ||||
86 | Layout.fillWidth: true | ||||
87 | elide: Text.ElideRight | ||||
88 | text: i18nc("Part of a string like this: '<app name> - <category>'", "- %1", delegateArea.application.categoryDisplay) | ||||
89 | maximumLineCount: 1 | ||||
90 | opacity: 0.6 | ||||
91 | visible: delegateArea.application.categoryDisplay !== page.title | ||||
92 | } | ||||
93 | } | ||||
94 | | ||||
80 | InstallApplicationButton { | 95 | InstallApplicationButton { | ||
81 | id: installButton | 96 | id: installButton | ||
82 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | 97 | Layout.alignment: Qt.AlignVCenter | Qt.AlignRight | ||
83 | Layout.rowSpan: delegateArea.compact ? 3 : 1 | 98 | Layout.rowSpan: delegateArea.compact ? 3 : 1 | ||
84 | } | 99 | } | ||
85 | 100 | | |||
86 | RowLayout { | 101 | RowLayout { | ||
87 | visible: showRating | 102 | visible: showRating | ||
Show All 29 Lines |
just Layout.fillWidth: !category.visible.