From 6a1ff73f3d561aa945f64460433498583d81dabb Mon Sep 17 00:00:00 2001 From: Jan-Simon Moeller Date: Tue, 19 Nov 2024 14:21:01 +0100 Subject: Import Qt6 conversion patch Import the patches for the demo applications into the app repos. Bug-AGL: SPEC-5294 Change-Id: I82e4c942fa94fecdf03e60bf2a672d8ada953c93 Signed-off-by: Jan-Simon Moeller --- 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 } -- cgit 1.2.3-korg