@@ -64,22 +64,16 @@ PreviewWidget {
64 triggered(root.widgetId, "rated", data);
64 triggered(root.widgetId, "rated", data);
68 id: ratingLabelAndWidgetContainer
68 id: ratingLabelAndWidgetContainer
71− right: parent.right
69+ anchors { left: parent.left; right: parent.right; }
72− }
70+ spacing: units.gu(0.5)
73− implicitHeight: ratingLabel.height + rating.height
74 visible: widgetData["visible"] !== "review"
71 visible: widgetData["visible"] !== "review"
77 id: ratingLabel
74 id: ratingLabel
78 objectName: "ratingLabel"
75 objectName: "ratingLabel"
81− right: parent.right
76+ anchors { left: parent.left; right: parent.right; }
83 fontSize: "large"
77 fontSize: "large"
84 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
78 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
85 opacity: .8
79 opacity: .8
@@ -89,17 +83,15 @@ PreviewWidget {
90 id: rating
84 id: rating
91 objectName: "rating"
85 objectName: "rating"
93− top: ratingLabel.bottom
94− left: parent.left
86+ anchors.left: parent.left
97 onValueChanged: {
89 onValueChanged: {
98 if (widgetData["visible"] === "rating") root.submit();
90 if (widgetData["visible"] === "rating") root.submit();
101− property var urlIconEmpty: widgetData["rating-icon-empty"]
93+ property var urlIconEmpty: widgetData["rating-icon-empty"] || "image://theme/non-starred"
102− property var urlIconFull: widgetData["rating-icon-full"]
94+ property var urlIconFull: widgetData["rating-icon-full"] || "image://theme/starred"
@@ -131,10 +123,7 @@ PreviewWidget {
132 id: reviewSubmitContainer
124 id: reviewSubmitContainer
133 anchors {
125 anchors {
134− top: reviewLabel.bottom
137− bottom: parent.bottom
126+ fill: parent
138 topMargin: reviewContainer.innerMargin
127 topMargin: reviewContainer.innerMargin
140 implicitHeight: reviewTextArea.implicitHeight + anchors.topMargin
129 implicitHeight: reviewTextArea.implicitHeight + anchors.topMargin