1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
From a1a5be00d1e5ba0d857b9b83769a2c666c2be313 Mon Sep 17 00:00:00 2001
From: Indivara Weerasuriya <1806262-indivara@users.noreply.git.qt.io>
Date: Wed, 24 Jul 2024 09:46:03 +0900
Subject: [PATCH] Migrate to Qt 6
---
app/Radio.qml | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/app/Radio.qml b/app/Radio.qml
index bd67c84..d2950af 100644
--- a/app/Radio.qml
+++ b/app/Radio.qml
@@ -60,7 +60,7 @@ ApplicationWindow {
anchors.right: parent.right
anchors.bottom: controls.top
fillMode: Image.Stretch
- source: './images/HMI_Radio_Equalizer.svg'
+ source: 'qrc:/images/HMI_Radio_Equalizer.svg'
}
Item {
id: controls
@@ -83,11 +83,11 @@ ApplicationWindow {
Row {
spacing: 20
Image {
- source: './images/FM_Icons_FM.svg'
+ source: 'qrc:/images/FM_Icons_FM.svg'
}
// ToggleButton {
-// offImage: './images/FM_Icons_FM.svg'
-// onImage: './images/FM_Icons_AM.svg'
+// offImage: 'qrc:/images/FM_Icons_FM.svg'
+// onImage: 'qrc:/images/FM_Icons_AM.svg'
// onCheckedChanged: {
// radio.band = checked ? radio.amBand : radio.fmBand
// radio.frequency = radio.minFrequency
@@ -146,7 +146,7 @@ ApplicationWindow {
}
ImageButton {
- offImage: './images/AGL_MediaPlayer_BackArrow.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_BackArrow.svg'
Timer {
running: parent.pressed
triggeredOnStart: true
@@ -162,7 +162,7 @@ ApplicationWindow {
}
ImageButton {
- offImage: './images/AGL_MediaPlayer_ForwardArrow.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_ForwardArrow.svg'
Timer {
running: parent.pressed
triggeredOnStart: true
@@ -181,7 +181,7 @@ ApplicationWindow {
ImageButton {
id: play
- offImage: './images/AGL_MediaPlayer_Player_Play.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_Player_Play.svg'
onClicked: {
radio.start()
}
@@ -190,7 +190,7 @@ ApplicationWindow {
when: radio.playing
PropertyChanges {
target: play
- offImage: './images/AGL_MediaPlayer_Player_Pause.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_Player_Pause.svg'
onClicked: radio.stop()
}
}
@@ -207,7 +207,7 @@ ApplicationWindow {
ImageButton {
id: scanBackwardBtn
- offImage: './images/AGL_MediaPlayer_BackArrow.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_BackArrow.svg'
states: [
State {
when: radio.playing
@@ -224,7 +224,7 @@ ApplicationWindow {
ImageButton {
id: scanForwardBtn
- offImage: './images/AGL_MediaPlayer_ForwardArrow.svg'
+ offImage: 'qrc:/images/AGL_MediaPlayer_ForwardArrow.svg'
states: [
State {
when: radio.playing
@@ -284,9 +284,9 @@ ApplicationWindow {
source: {
switch (model.modelData.band) {
case radio.fmBand:
- return './images/FM_Icons_FM.svg'
+ return 'qrc:/images/FM_Icons_FM.svg'
case radio.amBand:
- return './images/FM_Icons_AM.svg'
+ return 'qrc:/images/FM_Icons_AM.svg'
}
return null
}
|