on xenial help sign in
cosmethical changes
6830b54Michael Zanetti
Dash/Music/MusicPreview.qml+8−20
@@ -66,6 +66,7 @@ GenericPreview {
66 onErrorStringChanged: console.warn("Audio player error:", errorString)
66 onErrorStringChanged: console.warn("Audio player error:", errorString)
67
67
68 }
68 }
69+
69 Connections {
70 Connections {
70 target: root
71 target: root
71 onIsCurrentChanged: {
72 onIsCurrentChanged: {
@@ -76,19 +77,11 @@ GenericPreview {
76 }
77 }
77
78
78 Column {
79 Column {
79− anchors {
80− left: parent.left
81− right: parent.right
80+ anchors { left: parent.left; right: parent.right }
82− }
83−
84− height: childrenRect.height
85
81
86 ThinDivider {
82 ThinDivider {
87 objectName: "topDivider"
83 objectName: "topDivider"
88− anchors {
89− left: parent.left
90− right: parent.right
84+ anchors { left: parent.left; right: parent.right }
91− }
92 visible: trackRepeater.count > 0
85 visible: trackRepeater.count > 0
93 }
86 }
94
87
@@ -141,6 +134,7 @@ GenericPreview {
141 color: "white"
134 color: "white"
142 opacity: .9
135 opacity: .9
143 }
136 }
137+
144 MouseArea {
138 MouseArea {
145 anchors.fill: parent
139 anchors.fill: parent
146 onClicked: {
140 onClicked: {
@@ -183,19 +177,17 @@ GenericPreview {
183 visible: progressBarImage.visible
177 visible: progressBarImage.visible
184 property int maxWidth: progressBarImage.width - units.dp(4)
178 property int maxWidth: progressBarImage.width - units.dp(4)
185 }
179 }
180+
186 Image {
181 Image {
187 id: progressBarImage
182 id: progressBarImage
188− anchors {
189− left: parent.left
190− top: parent.bottom
191− right: parent.right
183+ anchors { left: parent.left; top: parent.bottom; right: parent.right }
192− }
193 height: units.dp(6)
184 height: units.dp(6)
194 visible: audioPlayer.playbackState != Audio.StoppedState && trackItem.isPlayingItem
185 visible: audioPlayer.playbackState != Audio.StoppedState && trackItem.isPlayingItem
195 source: "graphics/music_progress_bg.png"
186 source: "graphics/music_progress_bg.png"
196
187
197 }
188 }
198 }
189 }
190+
199 Label {
191 Label {
200 id: valueLabel
192 id: valueLabel
201 objectName: "timeLabel"
193 objectName: "timeLabel"
@@ -212,11 +204,7 @@ GenericPreview {
212 }
204 }
213
205
214 ThinDivider {
206 ThinDivider {
215− anchors {
216− left: parent.left
217− bottom: parent.bottom
207+ anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
218− right: parent.right
219− }
220 }
208 }
221 }
209 }
222 }
210 }