@@ -25,8 +25,6 @@ import "../../Components/IconUtil.js" as IconUtil
25DashPreview {
25DashPreview {
28− property bool canBeRated: root.previewData.rating >= 0.0
30 signal sendUserReview(string review)
28 signal sendUserReview(string review)
32 title: root.previewData.title
30 title: root.previewData.title
@@ -156,48 +154,47 @@ DashPreview {
156 styleColor: "black"
154 styleColor: "black"
159− ListItem.ThinDivider {
160− visible: root.canBeRated
164− visible: root.canBeRated
158+ visible: root.previewData.rating >= 0
165 anchors { left: parent.left; right: parent.right }
159 anchors { left: parent.left; right: parent.right }
166− height: rateLabel.height
160+ height: childrenRect.height
175− text: i18n.tr("Rate this")
177− anchors.left: parent.left
178− anchors.verticalCenter: parent.verticalCenter
162+ ListItem.ThinDivider { }
165+ anchors { left: parent.left; right: parent.right }
166+ height: rateLabel.height
175+ text: i18n.tr("Rate this")
177+ anchors.left: parent.left
178+ anchors.verticalCenter: parent.verticalCenter
181− // FIXME these need to be made interactive and connected to the scope
181+ // FIXME these need to be made interactive and connected to the scope
182− RatingStars {
182+ RatingStars {
183− anchors.right: parent.right
183+ anchors.right: parent.right
184− anchors.verticalCenter: parent.verticalCenter
184+ anchors.verticalCenter: parent.verticalCenter
188− ListItem.ThinDivider {
188+ ListItem.ThinDivider { }
189− visible: root.canBeRated
192− AppReviews {
190+ AppReviews {
193− visible: root.canBeRated
194− objectName: "appReviews"
191+ objectName: "appReviews"
195− anchors { left: parent.left; right: parent.right }
192+ anchors { left: parent.left; right: parent.right }
197− model: root.previewData.infoMap["comments"] ? root.previewData.infoMap["comments"].value : undefined
194+ model: root.previewData.infoMap["comments"] ? root.previewData.infoMap["comments"].value : undefined
199− onSendReview: root.sendUserReview(review);
196+ onSendReview: root.sendUserReview(review);