on xenial help sign in
cosmethical changes
commit6830b5438f29c9ceb2106684a7ed017bbe272afb authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 13 Nov 2013, 19:54 (13 years ago) parent3541a2d
1 file changed+8−20
Dash/Music/MusicPreview.qml+8−20
Dash/Music/MusicPreview.qml+8−20
@@ -66,6 +66,7 @@ GenericPreview {
6666 onErrorStringChanged: console.warn("Audio player error:", errorString)
6767
6868 }
69+
6970 Connections {
7071 target: root
7172 onIsCurrentChanged: {
@@ -76,19 +77,11 @@ GenericPreview {
7677 }
7778
7879 Column {
79− anchors {
80− left: parent.left
81− right: parent.right
82− }
83−
84− height: childrenRect.height
80+ anchors { left: parent.left; right: parent.right }
8581
8682 ThinDivider {
8783 objectName: "topDivider"
88− anchors {
89− left: parent.left
90− right: parent.right
91− }
84+ anchors { left: parent.left; right: parent.right }
9285 visible: trackRepeater.count > 0
9386 }
9487
@@ -141,6 +134,7 @@ GenericPreview {
141134 color: "white"
142135 opacity: .9
143136 }
137+
144138 MouseArea {
145139 anchors.fill: parent
146140 onClicked: {
@@ -183,19 +177,17 @@ GenericPreview {
183177 visible: progressBarImage.visible
184178 property int maxWidth: progressBarImage.width - units.dp(4)
185179 }
180+
186181 Image {
187182 id: progressBarImage
188− anchors {
189− left: parent.left
190− top: parent.bottom
191− right: parent.right
192− }
183+ anchors { left: parent.left; top: parent.bottom; right: parent.right }
193184 height: units.dp(6)
194185 visible: audioPlayer.playbackState != Audio.StoppedState && trackItem.isPlayingItem
195186 source: "graphics/music_progress_bg.png"
196187
197188 }
198189 }
190+
199191 Label {
200192 id: valueLabel
201193 objectName: "timeLabel"
@@ -212,11 +204,7 @@ GenericPreview {
212204 }
213205
214206 ThinDivider {
215− anchors {
216− left: parent.left
217− bottom: parent.bottom
218− right: parent.right
219− }
207+ anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
220208 }
221209 }
222210 }