~gg-lp/music-app/music-app

« back to all changes in this revision

Viewing changes to MusicPlaylists.qml

  • Committer: Andrew Hayzen
  • Date: 2014-11-10 22:20:24 UTC
  • mto: This revision was merged to the branch mainline in revision 735.
  • Revision ID: ahayzen@gmail.com-20141110222024-kjfoirzwefw4lhwk
* Rewrite the ColumnFlow.qml to use dynamic creation/deletion of cards

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        objectName: "playlistsCardView"
69
69
        delegate: Card {
70
70
            id: playlistCard
71
 
            coverSources: Playlists.getPlaylistCovers(name)
72
 
            primaryText: name
73
 
            secondaryText: i18n.tr("%1 song", "%1 songs", count).arg(count)
 
71
            coverSources: Playlists.getPlaylistCovers(model.name)
 
72
            primaryText: model.name
 
73
            secondaryText: i18n.tr("%1 song", "%1 songs", model.count).arg(model.count)
74
74
 
75
75
            onClicked: {
76
 
                albumTracksModel.filterPlaylistTracks(name)
 
76
                albumTracksModel.filterPlaylistTracks(model.name)
77
77
 
78
78
                var comp = Qt.createComponent("common/SongsPage.qml")
79
79
                var songsPage = comp.createObject(mainPageStack,