~ahayzen/music-app/refactor-pull-now-playing-sidebar

« back to all changes in this revision

Viewing changes to app/ui/Playlists.qml

  • Committer: Andrew Hayzen
  • Date: 2015-06-28 03:17:10 UTC
  • mfrom: (846.2.30 refactor)
  • Revision ID: ahayzen@gmail.com-20150628031710-5di845pa3qsnkh26
* Merge of lp:music-app/refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
 */
20
20
 
21
 
import QtQuick 2.3
22
 
import Ubuntu.Components 1.1
 
21
import QtQuick 2.4
 
22
import Ubuntu.Components 1.2
23
23
import Ubuntu.Components.Popups 1.0
24
24
import QtMultimedia 5.0
25
25
import QtQuick.LocalStorage 2.0
53
53
    ]
54
54
 
55
55
    property bool changed: false
 
56
    property bool childrenChanged: false
56
57
 
57
58
    onVisibleChanged: {
58
59
        if (changed) {
82
83
        delegate: Card {
83
84
            id: playlistCard
84
85
            coverSources: Playlists.getPlaylistCovers(model.name)
 
86
            objectName: "playlistCardItem" + index
85
87
            primaryText: model.name
86
88
            secondaryText: i18n.tr("%1 song", "%1 songs", model.count).arg(model.count)
87
89