Import Qt6 conversion patch 19/30519/1 master 19.90.0 trout/19.90.0 trout_19.90.0
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 19 Nov 2024 12:23:04 +0000 (13:23 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 19 Nov 2024 12:23:17 +0000 (13:23 +0100)
Import the patches for the demo applications into the app repos.

Bug-AGL: SPEC-5294
Change-Id: Icc1af91e657a66e2681dd6ab3b46037e6ed0c826
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
app/MediaPlayer.qml

index fd4db58..6f381da 100644 (file)
@@ -174,14 +174,14 @@ ApplicationWindow {
                             //ToggleButton {
                             //    id: random
                             //    visible: bluetooth.connected == false
                             //ToggleButton {
                             //    id: random
                             //    visible: bluetooth.connected == false
-                            //    offImage: './images/AGL_MediaPlayer_Shuffle_Inactive.svg'
-                            //    onImage: './images/AGL_MediaPlayer_Shuffle_Active.svg'
+                            //    offImage: 'qrc:/images/AGL_MediaPlayer_Shuffle_Inactive.svg'
+                            //    onImage: 'qrc:/images/AGL_MediaPlayer_Shuffle_Active.svg'
                             //}
                             ToggleButton {
                                 id: loop
                                 visible: player.av_connected === false
                             //}
                             ToggleButton {
                                 id: loop
                                 visible: player.av_connected === false
-                                offImage: './images/AGL_MediaPlayer_Loop_Inactive.svg'
-                                onImage: './images/AGL_MediaPlayer_Loop_Active.svg'
+                                offImage: 'qrc:/images/AGL_MediaPlayer_Loop_Inactive.svg'
+                                onImage: 'qrc:/images/AGL_MediaPlayer_Loop_Active.svg'
                                 onClicked: { mediaplayer.loop(checked ? "playlist" : "off") }
                             }
                         }
                                 onClicked: { mediaplayer.loop(checked ? "playlist" : "off") }
                             }
                         }
@@ -228,15 +228,15 @@ ApplicationWindow {
                     RowLayout {
                         Layout.fillHeight: true
 //                        Image {
                     RowLayout {
                         Layout.fillHeight: true
 //                        Image {
-//                            source: './images/AGL_MediaPlayer_Playlist_Inactive.svg'
+//                            source: 'qrc:/images/AGL_MediaPlayer_Playlist_Inactive.svg'
 //                        }
 //                        Image {
 //                        }
 //                        Image {
-//                            source: './images/AGL_MediaPlayer_CD_Inactive.svg'
+//                            source: 'qrc:/images/AGL_MediaPlayer_CD_Inactive.svg'
 //                        }
                         Item { Layout.fillWidth: true }
                         ImageButton {
                             id: previous
 //                        }
                         Item { Layout.fillWidth: true }
                         ImageButton {
                             id: previous
-                            offImage: './images/AGL_MediaPlayer_BackArrow.svg'
+                            offImage: 'qrc:/images/AGL_MediaPlayer_BackArrow.svg'
                             onClicked: {
                                 mediaplayer.previous()
                             }
                             onClicked: {
                                 mediaplayer.previous()
                             }
@@ -248,7 +248,7 @@ ApplicationWindow {
                                     when: player.status == "playing"
                                     PropertyChanges {
                                         target: play
                                     when: player.status == "playing"
                                     PropertyChanges {
                                         target: play
-                                        offImage: './images/AGL_MediaPlayer_Player_Pause.svg'
+                                        offImage: 'qrc:/images/AGL_MediaPlayer_Player_Pause.svg'
                                         onClicked: {
                                             mediaplayer.pause()
                                         }
                                         onClicked: {
                                             mediaplayer.pause()
                                         }
@@ -258,7 +258,7 @@ ApplicationWindow {
                                     when: player.status != "playing"
                                     PropertyChanges {
                                         target: play
                                     when: player.status != "playing"
                                     PropertyChanges {
                                         target: play
-                                        offImage: './images/AGL_MediaPlayer_Player_Play.svg'
+                                        offImage: 'qrc:/images/AGL_MediaPlayer_Player_Play.svg'
                                         onClicked: mediaplayer.play()
                                     }
                                 }
                                         onClicked: mediaplayer.play()
                                     }
                                 }
@@ -266,7 +266,7 @@ ApplicationWindow {
                         }
                         ImageButton {
                             id: forward
                         }
                         ImageButton {
                             id: forward
-                            offImage: './images/AGL_MediaPlayer_ForwardArrow.svg'
+                            offImage: 'qrc:/images/AGL_MediaPlayer_ForwardArrow.svg'
                             onClicked: {
                                 mediaplayer.next()
                             }
                             onClicked: {
                                 mediaplayer.next()
                             }
@@ -284,7 +284,7 @@ ApplicationWindow {
                                         mediaplayer.disconnect()
                               }
                               contentItem: Image {
                                         mediaplayer.disconnect()
                               }
                               contentItem: Image {
-                                source: player.av_connected ? './images/AGL_MediaPlayer_Bluetooth_Active.svg' : './images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
+                                source: player.av_connected ? 'qrc:/images/AGL_MediaPlayer_Bluetooth_Active.svg' : 'qrc:/images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
                               }
                         }
                     }
                               }
                         }
                     }