on xenial help sign in
fix test
commit2b141f6f952ff2fd20282b079bad7b7b7969c239 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 19 Jan 2016, 00:06 (11 years ago) parent445c1cd
1 file changed+9−2
tests/plugins/Dash/cardcreator/9.res+9−2
tests/plugins/Dash/cardcreator/9.res+9−2
@@ -80,11 +80,18 @@ CardAudioProgress {
8080 visible: parent.pressed;
8181 radius: "medium";
8282 }
83− Icon {
83+ Image {
84+ id: icon;
8485 anchors.fill: parent;
8586 anchors.margins: parent.height > units.gu(5) ? units.gu(2) : 0;
8687 opacity: 0.9;
87− name: DashAudioPlayer.playing && AudioUrlComparer.compare(parent.source, DashAudioPlayer.currentSource) ? "media-playback-pause" : "media-playback-start";
88+ fillMode: Image.PreserveAspectFit;
89+ sourceSize {
90+ width: icon.width;
91+ height: icon.height;
92+ }
93+ source: "image://theme/" + (DashAudioPlayer.playing && AudioUrlComparer.compare(parent.source, DashAudioPlayer.currentSource) ? "media-playback-pause" : "media-playback-start");
94+ asynchronous: true;
8895 }
8996 onClicked: {
9097 if (AudioUrlComparer.compare(source, DashAudioPlayer.currentSource)) {