on xenial help sign in
Make the source property an alias
fa2f331Albert Astals Cid
plugins/Dash/CardAudioProgress.qml+1−2
@@ -25,14 +25,13 @@ Item {
25 visible: AudioUrlComparer.compare(source, DashAudioPlayer.currentSource)
25 visible: AudioUrlComparer.compare(source, DashAudioPlayer.currentSource)
26
26
27 property int duration: 0
27 property int duration: 0
28− property url source
28+ property alias source: progress.source
29 property color color: theme.palette.normal.baseText
29 property color color: theme.palette.normal.baseText
30 readonly property int position: root.visible ? DashAudioPlayer.position / 1000 : 0
30 readonly property int position: root.visible ? DashAudioPlayer.position / 1000 : 0
31
31
32 AudioProgressBar {
32 AudioProgressBar {
33 id: progress
33 id: progress
34 anchors { left: parent.left; right: parent.right }
34 anchors { left: parent.left; right: parent.right }
35− source: root.source
36 }
35 }
37
36
38 Label {
37 Label {