Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Line(s) | 110 | Kirigami.Heading { | |||
---|---|---|---|---|---|
111 | level: 1 | 111 | level: 1 | ||
112 | text: appInfo.application.name | 112 | text: appInfo.application.name | ||
113 | lineHeight: 1.0 | 113 | lineHeight: 1.0 | ||
114 | maximumLineCount: 1 | 114 | maximumLineCount: 1 | ||
115 | elide: Text.ElideRight | 115 | elide: Text.ElideRight | ||
116 | Layout.fillWidth: true | 116 | Layout.fillWidth: true | ||
117 | Layout.alignment: Text.AlignBottom | 117 | Layout.alignment: Text.AlignBottom | ||
118 | } | 118 | } | ||
119 | RowLayout { | ||||
120 | spacing: Kirigami.Units.largeSpacing | ||||
121 | Rating { | ||||
122 | rating: appInfo.application.rating ? appInfo.application.rating.sortableRating : 0 | ||||
123 | starSize: summary.font.pointSize | ||||
124 | } | ||||
125 | QQC2.Label { | ||||
126 | text: appInfo.application.rating ? i18n("%1 ratings", appInfo.application.rating.ratingCount) : i18n("No ratings yet") | ||||
127 | opacity: 0.5 | ||||
128 | } | ||||
129 | } | ||||
119 | Kirigami.Heading { | 130 | Kirigami.Heading { | ||
131 | id: summary | ||||
120 | level: 4 | 132 | level: 4 | ||
121 | text: appInfo.application.comment | 133 | text: appInfo.application.comment | ||
122 | maximumLineCount: 2 | 134 | maximumLineCount: 2 | ||
123 | lineHeight: lineCount > 1 ? 0.75 : 1.2 | 135 | lineHeight: lineCount > 1 ? 0.75 : 1.2 | ||
124 | elide: Text.ElideRight | 136 | elide: Text.ElideRight | ||
125 | Layout.fillWidth: true | 137 | Layout.fillWidth: true | ||
126 | Layout.alignment: Qt.AlignTop | 138 | Layout.alignment: Qt.AlignTop | ||
127 | } | 139 | } | ||
▲ Show 20 Lines • Show All 252 Lines • Show Last 20 Lines |