Cleaning, fixing and translation

This commit is contained in:
Niels
2025-06-09 16:24:42 +02:00
parent 61b8e89c31
commit 7113a16dd6
12 changed files with 85 additions and 168 deletions
+7 -6
View File
@@ -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 -3
View File
@@ -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
}