2
* Copyright (C) 2014 Andrew Hayzen <ahayzen@gmail.com>
3
* Daniel Holm <d.holmen@gmail.com>
4
* Victor Thompson <victor.thompson@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 0.1
21
import Ubuntu.Components.Popups 0.1
26
height: styleMusic.common.expandHeight
29
id: deletePlaylistIcon
32
verticalCenter: parent.verticalCenter
34
color: styleMusic.common.white
36
height: styleMusic.common.expandedItem
37
width: styleMusic.common.expandedItem
41
left: deletePlaylistIcon.right
42
leftMargin: units.gu(0.5)
43
verticalCenter: parent.verticalCenter
45
color: styleMusic.common.white
47
// TRANSLATORS: this refers to deleting a playlist
48
text: i18n.tr("Delete")
53
parent.parent.parent.expanderLink.expanderVisible = false;
55
oldPlaylistName = parent.parent.parent.expanderLink.model.name
56
PopupUtils.open(removePlaylistDialog, mainView)