-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSpotifySelectUser.qml
More file actions
56 lines (47 loc) · 1.26 KB
/
SpotifySelectUser.qml
File metadata and controls
56 lines (47 loc) · 1.26 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
import QtQuick 2.1
import qb.components 1.0
import BxtClient 1.0
Screen {
id: spotifySelectUserScreen
isSaveCancelDialog: true
screenTitle: "Selecteer een bron voor de afspeellijsten"
onShown: {
radioButtonList.clearModel();
radioButtonList.addItem("Sonos playlist");
for (var i = 0; i < app.spotifyUserNames.length; i++) {
radioButtonList.addItem("Spotify van "+ app.spotifyUserNames[i]);
}
radioButtonList.forceLayout();
radioButtonList.currentIndex = app.selectedPlaylistUser
}
onSaved: {
app.selectedPlaylistUser = radioButtonList.currentIndex
if (radioButtonList.currentIndex == 0) {
app.playlistSource = "Sonos"
} else {
app.playlistSource = app.spotifyUserNames[radioButtonList.currentIndex - 1]
}
app.saveSettings()
}
Text {
id: headerText
text: "Ga naar de Sonos tegel in het Toon menu om Spotify accounts toe te voegen."
font.family: qfont.semiBold.name
font.pixelSize: isNxt ? 20 : 16
anchors {
top: parent.top
topMargin: isNxt ? 25 : 20
left: parent.left
leftMargin: isNxt ? 125 : 100
}
}
RadioButtonList {
id: radioButtonList
radioLabelWidth: isNxt ? 400 : 300
anchors {
horizontalCenter: parent.horizontalCenter
top:headerText.bottom
}
title: " "
}
}