@@ -26,15 +26,10 @@ DashPreview {
27 signal sendUserReview(string review)
27 signal sendUserReview(string review)
29− header: ListView {
29+ previewImages: ListView {
30 spacing: units.gu(1)
30 spacing: units.gu(1)
31 orientation: ListView.Horizontal
31 orientation: ListView.Horizontal
32 height: units.gu(22)
32 height: units.gu(22)
38 model: previewData.infoMap["more-screenshots"] != null ? previewData.infoMap["more-screenshots"].value : [previewData.image]
33 model: previewData.infoMap["more-screenshots"] != null ? previewData.infoMap["more-screenshots"].value : [previewData.image]
40 delegate: UbuntuShape {
35 delegate: UbuntuShape {
@@ -55,14 +50,8 @@ DashPreview {
58− title: AppInfo {
53+ header: AppInfo {
59 objectName: "appInfo"
54 objectName: "appInfo"
62− topMargin: units.gu(2)
67 appName: root.previewData.title
56 appName: root.previewData.title
68 icon: root.previewData.appIcon
57 icon: root.previewData.appIcon
@@ -133,7 +122,7 @@ DashPreview {
136− buttons: Loader {
125+ actions: Loader {
137 anchors {
126 anchors {
138 left: parent.left
127 left: parent.left
139 right: parent.right
128 right: parent.right
@@ -146,7 +135,7 @@ DashPreview {
149− body: Column {
138+ description: Column {
150 spacing: units.gu(1)
139 spacing: units.gu(1)
@@ -160,53 +149,54 @@ DashPreview {
160 styleColor: "black"
149 styleColor: "black"
163− Column {
153+ ratings: Column {
164− visible: root.previewData.rating >= 0
154+ visible: root.previewData.rating >= 0
165− anchors { left: parent.left; right: parent.right }
166− spacing: parent.spacing
155+ spacing: units.gu(1)
168− ListItem.ThinDivider { }
171− anchors { left: parent.left; right: parent.right }
172− height: rateLabel.height
156+ height: childrenRect.height
174− Label {
158+ ListItem.ThinDivider { }
181− text: i18n.tr("Rate this")
161+ anchors { left: parent.left; right: parent.right }
162+ height: rateLabel.height
171+ text: i18n.tr("Rate this")
183− anchors.left: parent.left
173+ anchors.left: parent.left
184− anchors.verticalCenter: parent.verticalCenter
174+ anchors.verticalCenter: parent.verticalCenter
187− // FIXME these need to be made interactive and connected to the scope
177+ // FIXME these need to be made interactive and connected to the scope
188− RatingStars {
178+ RatingStars {
189− anchors.right: parent.right
179+ anchors.right: parent.right
190− anchors.verticalCenter: parent.verticalCenter
180+ anchors.verticalCenter: parent.verticalCenter
194− ListItem.ThinDivider { }
184+ ListItem.ThinDivider { }
196− AppReviews {
186+ AppReviews {
197− id: appReviews
187+ id: appReviews
198− objectName: "appReviews"
188+ objectName: "appReviews"
199− // TODO: This should make this visible when the feature for reviews/comments is complete.
189+ // TODO: This should make this visible when the feature for reviews/comments is complete.
200− visible: false
190+ visible: false; height: 0
201− anchors { left: parent.left; right: parent.right }
203− model: root.previewData.infoMap["comments"] ? root.previewData.infoMap["comments"].value : undefined
192+ anchors { left: parent.left; right: parent.right }
205− onSendReview: root.sendUserReview(review);
194+ model: root.previewData.infoMap["comments"] ? root.previewData.infoMap["comments"].value : undefined
196+ onSendReview: root.sendUserReview(review);
207− onEditing: {
198+ onEditing: {
208− root.ensureVisible(appReviews.textArea);
199+ root.ensureVisible(appReviews.textArea);