Ubuntu Pastebin

Paste from cimi at Thu, 25 Feb 2016 10:36:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
=== modified file 'qml/Dash/Previews/PreviewRatingInput.qml'
--- qml/Dash/Previews/PreviewRatingInput.qml	2016-02-24 17:07:19 +0000
+++ qml/Dash/Previews/PreviewRatingInput.qml	2016-02-25 10:33:30 +0000
@@ -70,15 +70,17 @@
             left: parent.left
             right: parent.right
         }
-        implicitHeight: rating.height
+        implicitHeight: ratingLabel.height + rating.height
         visible: widgetData["visible"] !== "review"
 
         Label {
+            id: ratingLabel
             objectName: "ratingLabel"
             anchors {
-                verticalCenter: parent.verticalCenter
                 left: parent.left
+                right: parent.right
             }
+            fontSize: "large"
             color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
             opacity: .8
             text: widgetData["rating-label"] || i18n.tr("Rate this")
@@ -88,8 +90,8 @@
             id: rating
             objectName: "rating"
             anchors {
-                verticalCenter: parent.verticalCenter
-                right: parent.right
+                top: ratingLabel.bottom
+                left: parent.left
             }
             size: 5
             onValueChanged: {
@@ -103,7 +105,7 @@
 
     Item {
         id: reviewContainer
-        implicitHeight: reviewLabel.implicitHeight + reviewSubmitContainer.implicitHeight + anchors.topMargin
+        implicitHeight: reviewSubmitContainer.implicitHeight + anchors.topMargin
 
         readonly property real innerMargin: units.gu(1)
 
@@ -126,19 +128,6 @@
                 }
         }
 
-        Label {
-            objectName: "reviewLabel"
-            id: reviewLabel
-            anchors {
-                top: parent.top
-                left: parent.left
-                right: parent.right
-            }
-            color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
-            opacity: .8
-            text: widgetData["review-label"] || i18n.tr("Add a review")
-        }
-
         Item {
             id: reviewSubmitContainer
             anchors {
@@ -164,6 +153,7 @@
                     right: submitButton.left
                     rightMargin: reviewContainer.innerMargin
                 }
+                placeholderText: widgetData["review-label"] || i18n.tr("Add a review")
             }
 
             Button {
Download as text