aboutsummaryrefslogtreecommitdiffstats
path: root/apps/com.pelagicore.tuner
diff options
context:
space:
mode:
Diffstat (limited to 'apps/com.pelagicore.tuner')
-rw-r--r--apps/com.pelagicore.tuner/controls/MusicControls.qml22
-rw-r--r--apps/com.pelagicore.tuner/controls/StationInfoColumn.qml1
-rw-r--r--apps/com.pelagicore.tuner/controls/TunerSlider.qml2
-rw-r--r--apps/com.pelagicore.tuner/stores/TunerStore.qml4
-rw-r--r--apps/com.pelagicore.tuner/views/FullScreenBottomView.qml2
5 files changed, 17 insertions, 14 deletions
diff --git a/apps/com.pelagicore.tuner/controls/MusicControls.qml b/apps/com.pelagicore.tuner/controls/MusicControls.qml
index e0e25197..5d6758d5 100644
--- a/apps/com.pelagicore.tuner/controls/MusicControls.qml
+++ b/apps/com.pelagicore.tuner/controls/MusicControls.qml
@@ -31,6 +31,7 @@
****************************************************************************/
import QtQuick 2.10
+import Qt5Compat.GraphicalEffects
import shared.utils 1.0
import shared.controls 1.0
import QtQuick.Controls 2.3
@@ -64,16 +65,19 @@ Row {
icon.color: "white"
onClicked: root.playClicked()
- background: Image {
- id: playButtonBackground
+ background: Item {
anchors.centerIn: parent
- width: Sizes.dp(sourceSize.width)
- height: Sizes.dp(sourceSize.height)
- source: Style.image("ic_button-bg")
- fillMode: Image.PreserveAspectFit
-
- ScalableColorOverlay {
- anchors.fill: parent
+ width: playButtonBackground.width
+ height: playButtonBackground.height
+ Image {
+ id: playButtonBackground
+ width: Sizes.dp(sourceSize.width)
+ height: Sizes.dp(sourceSize.height)
+ source: Style.image("ic_button-bg")
+ fillMode: Image.PreserveAspectFit
+ }
+ ColorOverlay {
+ anchors.fill: playButtonBackground
source: playButtonBackground
color: Style.accentColor
}
diff --git a/apps/com.pelagicore.tuner/controls/StationInfoColumn.qml b/apps/com.pelagicore.tuner/controls/StationInfoColumn.qml
index 8bfaddfb..6dc0bd33 100644
--- a/apps/com.pelagicore.tuner/controls/StationInfoColumn.qml
+++ b/apps/com.pelagicore.tuner/controls/StationInfoColumn.qml
@@ -33,7 +33,6 @@
import QtQuick 2.8
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.2
-import QtGraphicalEffects 1.0
import shared.utils 1.0
import shared.controls 1.0
diff --git a/apps/com.pelagicore.tuner/controls/TunerSlider.qml b/apps/com.pelagicore.tuner/controls/TunerSlider.qml
index b10f2113..2bda18a1 100644
--- a/apps/com.pelagicore.tuner/controls/TunerSlider.qml
+++ b/apps/com.pelagicore.tuner/controls/TunerSlider.qml
@@ -33,7 +33,7 @@
import QtQuick 2.8
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.2
-import QtGraphicalEffects 1.0
+import Qt5Compat.GraphicalEffects
import shared.utils 1.0
import shared.controls 1.0
diff --git a/apps/com.pelagicore.tuner/stores/TunerStore.qml b/apps/com.pelagicore.tuner/stores/TunerStore.qml
index f05892e7..52da18cf 100644
--- a/apps/com.pelagicore.tuner/stores/TunerStore.qml
+++ b/apps/com.pelagicore.tuner/stores/TunerStore.qml
@@ -31,7 +31,7 @@
****************************************************************************/
import QtQuick 2.8
-import QtMultimedia 5.9
+import QtMultimedia
import QtApplicationManager.Application 2.0
import QtApplicationManager 2.0
import shared.utils 1.0
@@ -114,7 +114,7 @@ Store {
}
}
- // TODO: Simulation models. QtIVI models are not updated yet and only have two available stations.
+ // TODO: Simulation models. QtInterfaceFramework models are not updated yet and only have two available stations.
readonly property ListModel fm1Stations: ListModel {
ListElement {
freq: 87.5
diff --git a/apps/com.pelagicore.tuner/views/FullScreenBottomView.qml b/apps/com.pelagicore.tuner/views/FullScreenBottomView.qml
index 348ad3dd..940c0428 100644
--- a/apps/com.pelagicore.tuner/views/FullScreenBottomView.qml
+++ b/apps/com.pelagicore.tuner/views/FullScreenBottomView.qml
@@ -106,7 +106,7 @@ Item {
anchors.top: parent.top
height: parent.height
listView.model: root.store.currentPresetModel
- onItemClicked: {
+ onItemClicked: function(index) {
root.store.setFrequency(root.store.currentPresetModel.get(index).freq);
}
}