diff --git a/qml/harbour-allradio.qml b/qml/harbour-allradio.qml index 2e5a52d..98d82e8 100644 --- a/qml/harbour-allradio.qml +++ b/qml/harbour-allradio.qml @@ -9,7 +9,7 @@ import "helpers" ApplicationWindow { id: allRadio - property string _version: "2.0.19" + property string _version: "2.0.20" property string _language: Qt.locale().name.slice(0,2) property string _country: Qt.locale().name.slice(-2) property int sleepTime: 0 diff --git a/qml/pages/SettingsPage.qml b/qml/pages/SettingsPage.qml index 834d485..6826958 100644 --- a/qml/pages/SettingsPage.qml +++ b/qml/pages/SettingsPage.qml @@ -1,4 +1,5 @@ import QtQuick 2.0 +import QtQml 2.2 import Sailfish.Silica 1.0 import QtQuick.LocalStorage 2.0 import QtGraphicalEffects 1.0 @@ -42,6 +43,50 @@ Dialog { MenuItem { text: qsTr("Random favorite") } } } + Label { + anchors.right: parent.right + anchors.rightMargin: Theme.paddingLarge + color: Theme.highlightColor + font.pixelSize: Theme.fontSizeLarge + text: qsTr("Server settings") + } + + Separator { + anchors.left: parent.left + anchors.right: parent.right + anchors.rightMargin: Theme.paddingMedium + color: Theme.highlightColor + } + + ComboBox { + id: serverL + width: parent.width + label: qsTr("Server") + anchors.margins: Theme.paddingLarge + description: qsTr("Select anohter server") + //currentIndex: Favorites.getSetting("appStart",0) + menu : ContextMenu { + id: contextMenu + Column { + Repeater { + + model: radioBrowser.serversModel + delegate: QtObject { + property Item child: MenuItem { + text: modelData + onClicked: console.log("***") + } + } + } + } + } + + /* menu: ContextMenu { + MenuItem { text: qsTr("None") } + MenuItem { text: qsTr("Last played") } + MenuItem { text: qsTr("Random favorite") } + }*/ + } } onAccepted: Favorites.setSetting("appStart",appStart.currentIndex)