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