summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 14:27:35 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-11-19 14:27:46 +0100
commitddb80d78079653871100e64ebd7fbe112a22bf4c (patch)
tree70286355403e632e5af19c45e8a2b737b9ee40fe
parentcb7aa009ef9873967152e716fb01fecc30d401f7 (diff)
Import Qt6 conversion patchHEADmaster
Import the patches for the demo applications into the app repos. Bug-AGL: SPEC-5294 Change-Id: I3c184c778b2c36a4739849442c8f7690a5e6cb92 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
-rw-r--r--meson.build2
-rw-r--r--src/meson.build10
-rw-r--r--src/qml/Main.qml2
3 files changed, 7 insertions, 7 deletions
diff --git a/meson.build b/meson.build
index beb933d..634714f 100644
--- a/meson.build
+++ b/meson.build
@@ -26,5 +26,5 @@ project (
license: 'MIT/Expat',
)
-qt5 = import('qt5')
+qt = import('qt6')
subdir('src')
diff --git a/src/meson.build b/src/meson.build
index b37e24f..5a59f13 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,7 +1,7 @@
pkgconfig = import('pkgconfig')
cpp = meson.get_compiler('cpp')
-qt5_dep = dependency('qt5', modules: ['Qml', 'Quick', 'Gui'])
+qt_dep = dependency('qt6', modules: ['Qml', 'Quick', 'Gui'])
grpcpp_reflection_dep = cpp.find_library('grpc++_reflection')
protoc = find_program('protoc')
@@ -31,7 +31,7 @@ grpc_deps = [
]
window_mgnt_dep = [
- qt5_dep,
+ qt_dep,
grpc_deps,
]
@@ -40,14 +40,14 @@ window_mgnt_resources = [
'qml/qml.qrc'
]
-resource_files = qt5.compile_resources(sources: window_mgnt_resources)
+resource_files = qt.compile_resources(sources: window_mgnt_resources)
window_mgnt_src_headers = [
'AglShellGrpcClient.h',
]
-moc_files = qt5.compile_moc(headers: window_mgnt_src_headers,
- dependencies: qt5_dep)
+moc_files = qt.compile_moc(headers: window_mgnt_src_headers,
+ dependencies: qt_dep)
window_mgnt_src = [
'AglShellGrpcClient.cpp',
'main.cpp',
diff --git a/src/qml/Main.qml b/src/qml/Main.qml
index 151f3b8..5ddd2f7 100644
--- a/src/qml/Main.qml
+++ b/src/qml/Main.qml
@@ -10,6 +10,6 @@ Window {
Image {
anchors.fill: parent
- source: './images/AGL_HMI_Blue_Background_NoCar-01.png'
+ source: 'qrc:/images/AGL_HMI_Blue_Background_NoCar-01.png'
}
}