~vthompson/music-app/remix-genres-tab-001

« back to all changes in this revision

Viewing changes to MusicNowPlaying.qml

  • Committer: Tarmac
  • Author(s): Victor Thompson
  • Date: 2014-10-13 13:41:31 UTC
  • mfrom: (665.1.1 remix-add-clear-queue)
  • Revision ID: tarmac-20141013134131-ai6crnbmmhrry7wp
Add clear queue action. Fixes: https://bugs.launchpad.net/bugs/1379895.

Approved by Andrew Hayzen, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    head {
57
57
        actions: [
58
58
            Action {
 
59
                objectName: "clearQueue"
 
60
                iconName: "delete"
 
61
                visible: isListView
 
62
                onTriggered: {
 
63
                    head.backAction.trigger()
 
64
                    trackQueue.model.clear()
 
65
                }
 
66
            },
 
67
            Action {
59
68
                objectName: "toggleView"
60
 
                iconName: isListView ? "clear" : "media-playlist"
 
69
                iconName: "media-playlist"
61
70
                onTriggered: {
62
71
                    isListView = !isListView
63
72
                }