211
213
id: albumTracksDelegate
215
ListItemWithActions {
215
218
objectName: "songspage-track"
217
220
progression: false
218
221
height: styleMusic.common.itemHeight
225
if (focus == false) {
229
trackClicked(albumtrackslist.model, index) // play track
231
if (isAlbum && songStackPage.line1 !== "Genre") {
232
Library.addRecent(songStackPage.line2, songStackPage.line1, songStackPage.covers[0], songStackPage.line2, "album")
233
mainView.hasRecent = true
234
recentModel.filterRecent()
235
} else if (songStackPage.line1 === "Playlist") {
236
Library.addRecent(songStackPage.line2, "Playlist", songStackPage.covers[0], songStackPage.line2, "playlist")
237
mainView.hasRecent = true
238
recentModel.filterRecent()
223
leftSideAction: songStackPage.line1 === "Playlist"
224
? playlistRemoveAction.item : null
225
reorderable: songStackPage.line1 === "Playlist"
234
triggerActionOnMouseRelease: true
237
trackClicked(albumtrackslist.model, index) // play track
239
if (isAlbum && songStackPage.line1 !== "Genre") {
240
Library.addRecent(songStackPage.line2, songStackPage.line1, songStackPage.covers[0], songStackPage.line2, "album")
241
mainView.hasRecent = true
242
recentModel.filterRecent()
243
} else if (songStackPage.line1 === "Playlist") {
244
Library.addRecent(songStackPage.line2, "Playlist", songStackPage.covers[0], songStackPage.line2, "playlist")
245
mainView.hasRecent = true
246
recentModel.filterRecent()
250
console.debug("Move: ", from, to);
252
Playlists.move(songStackPage.line2, from, to)
254
albumTracksModel.filterPlaylistTracks(songStackPage.line2)
258
id: playlistRemoveAction
259
sourceComponent: Remove {
261
Playlists.removeFromPlaylist(songStackPage.line2, model.i)
263
albumTracksModel.filterPlaylistTracks(songStackPage.line2)
264
playlistModel.filterPlaylists()