summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2012-05-16 14:07:39 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2012-05-16 14:07:39 +0200
commitad5e96ea6b7e8b75972babe870338ceda00349fc (patch)
tree1dd7e729f890924480721d82a21ba5b1acab20d6 /qml
parentba42f561ea197d1e797b5ea945e600ee6d4d55f1 (diff)
Allow to use 320kbps quality for streaming and syncing.
Diffstat (limited to 'qml')
-rw-r--r--qml/SettingsPage.qml16
1 files changed, 10 insertions, 6 deletions
diff --git a/qml/SettingsPage.qml b/qml/SettingsPage.qml
index 03dd94b..ad21fb9 100644
--- a/qml/SettingsPage.qml
+++ b/qml/SettingsPage.qml
@@ -123,20 +123,24 @@ Page {
Selector {
title: "Stream"
model: ListModel {
- ListElement { name: "Low bandwidth"; value: SpotifySession.LowQuality }
- ListElement { name: "High bandwidth"; value: SpotifySession.HighQuality }
+ ListElement { name: "Low quality (96kbps)"; value: SpotifySession.LowQuality }
+ ListElement { name: "Normal quality (160kbps)"; value: SpotifySession.HighQuality }
+ ListElement { name: "High quality (320kbps)"; value: SpotifySession.UltraQuality }
}
- selectedIndex: spotifySession.streamingQuality == SpotifySession.LowQuality ? 0 : 1
+ selectedIndex: spotifySession.streamingQuality == SpotifySession.LowQuality ? 0
+ : spotifySession.streamingQuality == SpotifySession.HighQuality ? 1 : 2
onSelectedIndexChanged: spotifySession.streamingQuality = model.get(selectedIndex).value
}
Selector {
title: "Offline Sync"
model: ListModel {
- ListElement { name: "Low Quality"; value: SpotifySession.LowQuality }
- ListElement { name: "High Quality"; value: SpotifySession.HighQuality }
+ ListElement { name: "Low quality (96kbps)"; value: SpotifySession.LowQuality }
+ ListElement { name: "Normal quality (160kbps)"; value: SpotifySession.HighQuality }
+ ListElement { name: "High quality (320kbps)"; value: SpotifySession.UltraQuality }
}
- selectedIndex: spotifySession.syncQuality == SpotifySession.LowQuality ? 0 : 1
+ selectedIndex: spotifySession.syncQuality == SpotifySession.LowQuality ? 0
+ : spotifySession.syncQuality == SpotifySession.HighQuality ? 1 : 2
onSelectedIndexChanged: spotifySession.syncQuality = model.get(selectedIndex).value
}