@@ -118,32 +118,33 @@ GenericPreview {
118 property int column3Width: units.gu(4)
118 property int column3Width: units.gu(4)
119 anchors.verticalCenter: parent.verticalCenter
119 anchors.verticalCenter: parent.verticalCenter
121− UbuntuShape {
121+ AbstractButton {
123 objectName: "playButton"
122 objectName: "playButton"
124 width: trackRow.column1Width
123 width: trackRow.column1Width
125 height: width
124 height: width
129− anchors.centerIn: playButtonShape
130− name: audioPlayer.playbackState == Audio.PlayingState && trackItem.isPlayingItem ? "media-playback-pause" : "media-playback-start"
135− MouseArea {
126+ UbuntuShape {
136 anchors.fill: parent
128 anchors.fill: parent
132+ anchors.centerIn: playButtonShape
133+ name: audioPlayer.playbackState == Audio.PlayingState && trackItem.isPlayingItem ? "media-playback-pause" : "media-playback-start"
137− onClicked: {
139+ onClicked: {
138− if (trackItem.isPlayingItem) {
140+ if (trackItem.isPlayingItem) {
139− if (audioPlayer.playbackState == Audio.PlayingState) {
141+ if (audioPlayer.playbackState == Audio.PlayingState) {
140− audioPlayer.pause();
142+ audioPlayer.pause();
141− } else if (audioPlayer.playbackState == Audio.PausedState){
143+ } else if (audioPlayer.playbackState == Audio.PausedState){
142− audioPlayer.play();
144+ audioPlayer.play();