~vthompson/music-app/remix-songs-page

« back to all changes in this revision

Viewing changes to MusicArtists.qml

- Highlight now listens to onPlayingChange signal on all pages
- PlaylistTracks now uses LibraryListModel.qml.

Approved by Victor Thompson, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        title: i18n.tr("Artists")
37
37
        Component.onCompleted: {
38
38
            pageStack.push(mainpage)
 
39
            onPlayingTrackChange.connect(updateHighlight)
 
40
        }
 
41
 
 
42
        function updateHighlight(file)
 
43
        {
 
44
            console.debug("MusicArtists update highlight:", file)
 
45
            artisttrackslist.currentIndex = artistTracksModel.indexOf(file)
39
46
        }
40
47
 
41
48
        tools: ToolbarItems {
59
66
            id: highlight
60
67
            Rectangle {
61
68
                width: units.gu(.75)
62
 
                height: highlight.height
63
69
                color: styleMusic.listView.highlightColor;
64
70
                Behavior on y {
65
71
                    SpringAnimation {
136
142
            model: artistTracksModel.model
137
143
            delegate: artistTracksDelegate
138
144
 
 
145
            onCountChanged: {
 
146
                artisttrackslist.currentIndex = artistTracksModel.indexOf(currentFile)
 
147
            }
 
148
 
139
149
            Component {
140
150
                id: artistTracksDelegate
141
151