Import the patches for the demo applications into the app repos.
Bug-AGL: SPEC-5294
Change-Id: I2cc7de0547d40b40265adb06f5f7d877e0b500a9
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
cpp = meson.get_compiler('cpp')
-qt5_dep = dependency('qt5', modules: ['Qml', 'Quick', 'Gui'])
+qt_dep = dependency('qt6', modules: ['Core', 'Qml', 'Quick', 'Gui'])
dep_wayland_client = dependency('wayland-client', version: '>= 1.20.0')
dep_qtappfw = [
dependency('qtappfw-weather'),
grpc_cpp = find_program('grpc_cpp_plugin')
qt_defines = []
-qpa_header_path = join_paths(qt5_dep.version(), 'QtGui')
+qpa_header_path = join_paths(qt_dep.version(), 'QtGui')
qpa_header = join_paths(qpa_header_path, 'qpa/qplatformnativeinterface.h')
# we pass this QT_QPA_HEADER straight in the code as there's no easy
# way to pass the correct header
-if cpp.has_header(qpa_header, dependencies : qt5_dep)
+if cpp.has_header(qpa_header, dependencies : qt_dep)
qt_defines += [ '-DQT_QPA_HEADER=<@0@>'.format(qpa_header) ]
message('Found QtGui QPA header in ' + qpa_header_path)
endif
output : ['@BASENAME@.grpc.pb.cc', '@BASENAME@.grpc.pb.h'],
arguments : ['--proto_path=@CURRENT_SOURCE_DIR@/proto',
'--grpc_out=@BUILD_DIR@',
- '--plugin=protoc-gen-grpc=' + grpc_cpp.path(),
+ '--plugin=protoc-gen-grpc=' + grpc_cpp.full_path(),
'@INPUT@'])
generated_grpc_sources = grpc_gen.process('proto/agl_shell.proto')
homescreen_dep = [
- qt5_dep,
+ qt_dep,
dep_wayland_client,
dep_qtappfw,
grpc_deps
'qml/qml.qrc'
]
-resource_files = qt5.compile_resources(sources: homescreen_resources)
+resource_files = qt.compile_resources(sources: homescreen_resources)
protocols = [
[ 'agl-shell', 'agl-compositor' ],
'src/AglShellGrpcClient.h',
]
-moc_files = qt5.compile_moc(headers: homescreen_src_headers,
- dependencies: qt5_dep)
+moc_files = qt.compile_moc(headers: homescreen_src_headers,
+ dependencies: qt_dep)
homescreen_src = [
'src/statusbarserver.cpp',
import QtQuick 2.0
import QtQuick.Controls 2.0
-import QtGraphicalEffects 1.0
+import Qt5Compat.GraphicalEffects
Item {
id: main
anchors.horizontalCenter: parent.horizontalCenter
width: 220
height: width
- source: './images/%1_%2.svg'.arg(model.icon).arg(loc.pressed && (loc.index === model.index || loc.currentId === model.id) ? 'active' : 'inactive')
+ source: 'qrc:/images/%1_%2.svg'.arg(model.icon).arg(loc.pressed && (loc.index === model.index || loc.currentId === model.id) ? 'active' : 'inactive')
antialiasing: item.state !== ''
property string initial: model.name.substring(0,1).toUpperCase()
Image {
anchors.fill: parent
- source: './images/Utility_Logo_Background-01.svg'
+ source: 'qrc:/images/Utility_Logo_Background-01.svg'
property bool displayVolume: false;
MouseArea {
Image {
id: logo_image
anchors.centerIn: parent
- source: './images/Utility_Logo_Grey-01.svg'
+ source: 'qrc:/images/Utility_Logo_Grey-01.svg'
}
Timer {
Image {
width: 1080
height: 216
- source: './images/Utility_Music_Background-01.png'
+ source: 'qrc:/images/Utility_Music_Background-01.png'
ColumnLayout {
anchors.fill: parent
Layout.preferredHeight: 107
spacing: 10
Image {
- source: './images/MediaMusic/AlbumArtwork.png'
+ source: 'qrc:/images/MediaMusic/AlbumArtwork.png'
width: 105.298
height: 110.179
fillMode: Image.PreserveAspectFit
Layout.fillHeight: true
Layout.preferredHeight: 107
Image {
- source: './images/MediaPlayer/AGL_MediaPlayer_BackArrow.png'
+ source: 'qrc:/images/MediaPlayer/AGL_MediaPlayer_BackArrow.png'
}
Image {
- source: './images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png'
+ source: 'qrc:/images/MediaPlayer/AGL_MediaPlayer_Player_Pause.png'
}
Image {
- source: './images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png'
+ source: 'qrc:/images/MediaPlayer/AGL_MediaPlayer_ForwardArrow.png'
}
ProgressBar {
font.pixelSize: 20
}
Image {
- source: './images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
+ source: 'qrc:/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
}
Image {
- source: './images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
+ source: 'qrc:/images/MediaPlayer/AGL_MediaPlayer_Shuffle_Active.png'
}
ProgressBar {
Layout.fillWidth: true
Image {
width: 1080
height: 216
- source: './images/Utility_Radio_Background-01.png'
+ source: 'qrc:/images/Utility_Radio_Background-01.png'
}
import QtQuick 2.2
import QtQuick.Controls 2.0
-import QtGraphicalEffects 1.0
+import Qt5Compat.GraphicalEffects
MouseArea {
id: root
Image {
id: inactiveIcon
anchors.fill: parent
- source: './images/Shortcut/%1.svg'.arg(root.name.toLowerCase())
+ source: 'qrc:/images/Shortcut/%1.svg'.arg(root.name.toLowerCase())
fillMode: Image.PreserveAspectFit
}
Image {
id: activeIcon
anchors.fill: parent
- source: './images/Shortcut/%1_active.svg'.arg(root.name.toLowerCase())
+ source: 'qrc:/images/Shortcut/%1_active.svg'.arg(root.name.toLowerCase())
fillMode: Image.PreserveAspectFit
opacity: 0.0
}
id: chromeBarImage
anchors.top: parent.top
- source: "./images/SpeechChrome/bar.png"
+ source: "qrc:/images/SpeechChrome/bar.png"
Behavior on x {
NumberAnimation { duration: 250 }
anchors.left: parent.left
anchors.leftMargin: parent.width / 128
anchors.verticalCenter: parent.verticalCenter
- source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg"
+ source: agentName === "Alexa" ? "qrc:/images/SpeechChrome/push_to_talk_alexa.png" : "qrc:/images/SpeechChrome/push_to_talk.svg"
MouseArea {
anchors.fill: parent
anchors.right: parent.right
anchors.rightMargin: parent.width / 128
anchors.verticalCenter: parent.verticalCenter
- source: agentName === "Alexa" ? "./images/SpeechChrome/push_to_talk_alexa.png" : "./images/SpeechChrome/push_to_talk.svg"
+ source: agentName === "Alexa" ? "qrc:/images/SpeechChrome/push_to_talk_alexa.png" : "qrc:/images/SpeechChrome/push_to_talk.svg"
MouseArea {
anchors.fill: parent
icon = "WeatherIcons_Rain-01.png"
}
- condition_item.source = icon ? './images/Weather/' + icon : ''
+ condition_item.source = icon ? 'qrc:/images/Weather/' + icon : ''
}
onTemperatureChanged: {
Layout.preferredHeight: 20
Image {
id: condition_item
- source: './images/Weather/WeatherIcons_Rain-01.png'
+ source: 'qrc:/images/Weather/WeatherIcons_Rain-01.png'
}
Text {
id: temperature_item
id: bt_icon
Layout.preferredWidth: 77
Layout.preferredHeight: 73
- source: connStatus ? './images/Status/HMI_Status_Bluetooth_On-01.png' : './images/Status/HMI_Status_Bluetooth_Inactive-01.png'
+ source: connStatus ? 'qrc:/images/Status/HMI_Status_Bluetooth_On-01.png' : 'qrc:/images/Status/HMI_Status_Bluetooth_Inactive-01.png'
fillMode: Image.PreserveAspectFit
property string deviceName: "none"
property bool connStatus: false
Image {
anchors.fill: parent
- source: './images/TopSection_NoText_NoIcons-01.svg'
+ source: 'qrc:/images/TopSection_NoText_NoIcons-01.svg'
//fillMode: Image.PreserveAspectCrop
fillMode: Image.Stretch
Image {
anchors.fill: parent
- source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
+ source: 'qrc:/images/AGL_HMI_Blue_Background_NoCar-01.png'
}
}
Image {
anchors.fill: parent
- source: './images/TopSection_NoText_NoIcons-01.svg'
+ source: 'qrc:/images/TopSection_NoText_NoIcons-01.svg'
//fillMode: Image.PreserveAspectCrop
fillMode: Image.Stretch
height: Screen.height - (2 * 216)
Image {
anchors.fill: parent
- source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
+ source: 'qrc:/images/AGL_HMI_Blue_Background_NoCar-01.png'
}
}
],
)
-qt5 = import('qt5')
+qt = import('qt6')
subdir('homescreen')