-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpotifyEditUsersScreenDelegate.qml
More file actions
63 lines (54 loc) · 1.45 KB
/
SpotifyEditUsersScreenDelegate.qml
File metadata and controls
63 lines (54 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import QtQuick 2.1
import BasicUIControls 1.0
import qb.components 1.0
Rectangle
{
width: isNxt ? 320 : 250
height: isNxt ? 44 : 36
color: colors.canvas
signal refreshUsersList()
StandardButton {
id: newsSourceButton
controlGroup: spotifyUserGroup
width: isNxt ? 250 : 200
height: isNxt ? 35 : 28
radius: 5
text: name
fontPixelSize: isNxt ? 25 : 20
color: colors.background
anchors {
top: parent.top
topMargin: isNxt ? 5 : 4
left: parent.left
leftMargin: isNxt ? 5 : 4
}
onClicked: {
qdialog.showDialog(qdialog.SizeLarge, "Bevestiging verwijdering spotify account uit deze app", "Wilt U dit account echt verwijderen uit de lijst:\n\n" + app.spotifyUserNames[model.index],
qsTr("Nee"), function(){ },
qsTr("Ja"), function(){
app.deleteSpotifyAccount(model.index);
refreshUsersList();
});
}
}
IconButton {
id: deleteNewsSourceButton
width: isNxt ? 35 : 28
height: isNxt ? 35 : 28
iconSource: "qrc:/tsc/icon_delete.png"
anchors {
left: newsSourceButton.right
leftMargin: 6
top: newsSourceButton.top
}
topClickMargin: 3
onClicked: {
qdialog.showDialog(qdialog.SizeLarge, "Bevestiging verwijdering spotify account uit deze app", "Wilt U dit account echt verwijderen uit de lijst:\n\n" + app.spotifyUserNames[model.index],
qsTr("Nee"), function(){ },
qsTr("Ja"), function(){
app.deleteSpotifyAccount(model.index);
refreshUsersList();
});
}
}
}