Cleaning, fixing and translation
This commit is contained in:
@@ -82,16 +82,17 @@ DockedPanel {
|
||||
font.bold: true
|
||||
text: radioPlayer._name
|
||||
}
|
||||
Row {
|
||||
spacing: Theme.paddingMedium
|
||||
Image {
|
||||
// Row {
|
||||
// spacing: Theme.paddingMedium
|
||||
/* Image {
|
||||
id: headerLogo
|
||||
anchors.bottom: rcountry.bottom
|
||||
height: rcountry.height * 0.8
|
||||
fillMode: Image.PreserveAspectFit
|
||||
smooth: true
|
||||
source: radioPlayer._countrycode === "" ? radioPlayer._countrycode ? "../images/bycountry_t.png" : "" : "../flags/"+radioPlayer._countrycode.toLowerCase()+".png"
|
||||
}
|
||||
// source: radioPlayer._cc === "" ? radioPlayer._cc ? "../images/bycountry_t.png" : "" : "../flags/"+radioPlayer._cc.toLowerCase()+".png"
|
||||
source: "../flags/"+radioPlayer._cc.toLowerCase()+".png"
|
||||
} */
|
||||
Label {
|
||||
id: rcountry
|
||||
color: Theme.secondaryColor
|
||||
@@ -99,7 +100,7 @@ DockedPanel {
|
||||
width: parent.width
|
||||
elide: Text.ElideRight
|
||||
text: radioPlayer.radioCountryName
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,10 @@ Column {
|
||||
id: column
|
||||
spacing: Theme.paddingMedium
|
||||
anchors.centerIn: parent
|
||||
property QDtimer timer: QDtimer {
|
||||
id: spTimer
|
||||
interval: 5000; running: true; repeat: false
|
||||
}
|
||||
|
||||
Image {
|
||||
id: logo
|
||||
@@ -30,7 +34,7 @@ Column {
|
||||
BusyLabel {
|
||||
visible: radioBrowser.serversModel.count > 0
|
||||
running: visible
|
||||
text: qsTr("Connecting to:")
|
||||
text: qsTr("Connecting:")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
Label {
|
||||
@@ -41,9 +45,9 @@ Column {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
Button {
|
||||
visible: radioBrowser.serversModel.count > 1
|
||||
visible: radioBrowser.serversModel.count > 1 && !spTimer.running
|
||||
anchors.topMargin: Theme.paddingLarge
|
||||
text: "Try another server"
|
||||
text: qsTr("Try another server")
|
||||
onClicked: radioBrowser.getRandom()
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@ Page {
|
||||
on_LoadingChanged: {
|
||||
if (!_loading) {
|
||||
appAutoPlay()
|
||||
console.log(" *** AUTOPLAY")
|
||||
} else console.log(" *** INTE AUTOPLAY")
|
||||
//console.log(" *** AUTOPLAY")
|
||||
} //else console.log(" *** INTE AUTOPLAY")
|
||||
}
|
||||
|
||||
Splash {
|
||||
|
||||
@@ -20,7 +20,7 @@ Page {
|
||||
header: Column {
|
||||
width: parent.width
|
||||
|
||||
PageHeader {title: "Community Radio Browser";description: qsTr("Found ")+view.count + qsTr(" countries")}
|
||||
PageHeader {title: "Community Radio Browser";description: qsTr("Found")+" "+view.count + " " +qsTr("countries")}
|
||||
|
||||
SearchField {
|
||||
id: sfield
|
||||
|
||||
@@ -21,10 +21,10 @@ Page {
|
||||
|
||||
onSearchbyChanged: {
|
||||
switch (searchby){
|
||||
case "name": sortedby = "Sorted by Name";break;
|
||||
case "votes": sortedby = "Most likes";break;
|
||||
case "clicktrend": sortedby = "Trending right now";break;
|
||||
case "clickcount": sortedby = "Most played";
|
||||
case "name": sortedby = qsTr("Sorted by Name");break;
|
||||
case "votes": sortedby = qsTr("Most likes");break;
|
||||
case "clicktrend": sortedby = qsTr("Trending right now");break;
|
||||
case "clickcount": sortedby = qsTr("Most played");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ Page {
|
||||
onSearchbyChanged: {
|
||||
// console.log("SEARCHBY: "+searchby)
|
||||
switch (searchby){
|
||||
case "name": sortedby = "Sorted by Name";break;
|
||||
case "votes": sortedby = "Most likes";break;
|
||||
case "clicktrend": sortedby = "Trending right now";break;
|
||||
case "clickcount": sortedby = "Most played";
|
||||
case "name": sortedby = qsTr("By Name");break;
|
||||
case "votes": sortedby = qsTr("Most likes");break;
|
||||
case "clicktrend": sortedby = qsTr("Trending right now");break;
|
||||
case "clickcount": sortedby = qsTr("Most played");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ Page {
|
||||
width: parent.width
|
||||
SearchField {
|
||||
id: sfield
|
||||
placeholderText: "Search"
|
||||
placeholderText: qsTr("Search")
|
||||
inputMethodHints: Qt.ImhNoAutoUppercase //| Qt.ImhNoPredictiveText
|
||||
EnterKey.iconSource: "image://theme/icon-m-enter-close"
|
||||
EnterKey.onClicked: focus = false
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
Page {
|
||||
id: page
|
||||
|
||||
// The effective value will be restricted by ApplicationWindow.allowedOrientations
|
||||
allowedOrientations: Orientation.All
|
||||
|
||||
SilicaListView {
|
||||
id: listView
|
||||
model: 20
|
||||
anchors.fill: parent
|
||||
header: PageHeader {
|
||||
title: qsTr("Nested Page")
|
||||
}
|
||||
delegate: BackgroundItem {
|
||||
id: delegate
|
||||
|
||||
Label {
|
||||
x: Theme.horizontalPageMargin
|
||||
text: qsTr("Item") + " " + index
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
|
||||
}
|
||||
onClicked: console.log("Clicked " + index)
|
||||
}
|
||||
VerticalScrollDecorator {}
|
||||
}
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
import QtQuick.LocalStorage 2.0
|
||||
import QtGraphicalEffects 1.0
|
||||
import "../helpers/db.js" as Favorites
|
||||
|
||||
Page {
|
||||
PageHeader {
|
||||
id: pheader
|
||||
title: "Settings"
|
||||
}
|
||||
|
||||
Flickable {
|
||||
id: flick
|
||||
width:parent.width
|
||||
height: parent.height - Theme.paddingLarge * 3
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Theme.paddingLarge
|
||||
anchors.rightMargin: Theme.paddingLarge
|
||||
anchors.topMargin: pheader.height + Theme.paddingLarge
|
||||
//contentHeight: column1.height
|
||||
|
||||
|
||||
|
||||
TextSwitch {
|
||||
id: activationSwitch
|
||||
text: "Auto play"
|
||||
description: "Play radio station on start"
|
||||
onCheckedChanged: {
|
||||
device.setStatus(checked ? DeviceState.Armed : DeviceState.Disarmed)
|
||||
}
|
||||
}
|
||||
ComboBox {
|
||||
width: parent.widht
|
||||
label: "What to play"
|
||||
menu: ContextMenu {
|
||||
MenuItem { text: "Last played" }
|
||||
MenuItem { text: "Random favorite" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Label {
|
||||
width: parent.width-70
|
||||
font.pixelSize: Theme.fontSizeLarge
|
||||
text: qsTr("WARNING! THis is for debugging or corrupt database. Only delete db if it is not working!!!")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
Button {
|
||||
text: qsTr("Delete DB")
|
||||
onClicked: Favorites.dropTable()
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
} */
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user