diff options
Diffstat (limited to 'recipes-demo/qtquickcontrols2-agl-style')
-rw-r--r-- | recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style/0001-Migrate-to-Qt-6.patch | 71 | ||||
-rw-r--r-- | recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb | 10 |
2 files changed, 76 insertions, 5 deletions
diff --git a/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style/0001-Migrate-to-Qt-6.patch b/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style/0001-Migrate-to-Qt-6.patch new file mode 100644 index 000000000..f00cb1420 --- /dev/null +++ b/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style/0001-Migrate-to-Qt-6.patch @@ -0,0 +1,71 @@ +From 6581ce20312ee15f35e00e29e363270616e96359 Mon Sep 17 00:00:00 2001 +From: Indivara Weerasuriya <1806262-indivara@users.noreply.git.qt.io> +Date: Wed, 24 Jul 2024 09:37:08 +0900 +Subject: [PATCH] Migrate to Qt 6 + +--- + imports/qtquickcontrols2aglstyle/ProgressBar.qml | 2 +- + imports/qtquickcontrols2aglstyle/Slider.qml | 2 +- + imports/qtquickcontrols2aglstyle/qmldir | 10 ++++++++++ + .../qtquickcontrols2aglstyle.pro | 4 ++-- + 4 files changed, 14 insertions(+), 4 deletions(-) + create mode 100644 imports/qtquickcontrols2aglstyle/qmldir + +diff --git a/imports/qtquickcontrols2aglstyle/ProgressBar.qml b/imports/qtquickcontrols2aglstyle/ProgressBar.qml +index 6d5e3ae..fca0b8a 100644 +--- a/imports/qtquickcontrols2aglstyle/ProgressBar.qml ++++ b/imports/qtquickcontrols2aglstyle/ProgressBar.qml +@@ -16,7 +16,7 @@ + + import QtQuick 2.6 + import QtQuick.Templates 2.0 as T +-import QtGraphicalEffects 1.0 ++import Qt5Compat.GraphicalEffects + + T.ProgressBar { + id: control +diff --git a/imports/qtquickcontrols2aglstyle/Slider.qml b/imports/qtquickcontrols2aglstyle/Slider.qml +index 5b6a495..02f4555 100644 +--- a/imports/qtquickcontrols2aglstyle/Slider.qml ++++ b/imports/qtquickcontrols2aglstyle/Slider.qml +@@ -16,7 +16,7 @@ + + import QtQuick 2.6 + import QtQuick.Templates 2.0 as T +-import QtGraphicalEffects 1.0 ++import Qt5Compat.GraphicalEffects + + T.Slider { + id: root +diff --git a/imports/qtquickcontrols2aglstyle/qmldir b/imports/qtquickcontrols2aglstyle/qmldir +new file mode 100644 +index 0000000..e4e4417 +--- /dev/null ++++ b/imports/qtquickcontrols2aglstyle/qmldir +@@ -0,0 +1,10 @@ ++module AGL ++ApplicationWindow 1.0 ApplicationWindow.qml ++Button 1.0 Button.qml ++Label 1.0 Label.qml ++Page 1.0 Page.qml ++ProgressBar 1.0 ProgressBar.qml ++Slider 1.0 Slider.qml ++Switch 1.0 Switch.qml ++TextField 1.0 TextField.qml ++Tumbler 1.0 Tumbler.qml +\ No newline at end of file +diff --git a/imports/qtquickcontrols2aglstyle/qtquickcontrols2aglstyle.pro b/imports/qtquickcontrols2aglstyle/qtquickcontrols2aglstyle.pro +index 5a34485..ba24e9d 100644 +--- a/imports/qtquickcontrols2aglstyle/qtquickcontrols2aglstyle.pro ++++ b/imports/qtquickcontrols2aglstyle/qtquickcontrols2aglstyle.pro +@@ -1,8 +1,8 @@ + TEMPLATE = aux + +-DISTFILES = *.qml images ++DISTFILES = *.qml images qmldir + + files.files = $$DISTFILES +-files.path = $$PREFIX$$[QT_INSTALL_QML]/QtQuick/Controls.2/AGL ++files.path = $$PREFIX$$[QT_INSTALL_BINS]/AGL + + INSTALLS += files diff --git a/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb b/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb index 49d2e8565..3ccee1210 100644 --- a/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb +++ b/recipes-demo/qtquickcontrols2-agl-style/qtquickcontrols2-agl-style_git.bb @@ -3,21 +3,21 @@ HOMEPAGE = "https://git.automotivelinux.org/src/qtquickcontrols2-agl-style" LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=815ca599c9df247a0c7f619bab123dad" -DEPENDS = "qtquickcontrols2" +DEPENDS = "qtdeclarative" PV = "1.0+git${SRCPV}" -SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/qtquickcontrols2-agl-style;protocol=https;branch=${AGL_BRANCH}" +SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/qtquickcontrols2-agl-style;protocol=https;branch=${AGL_BRANCH} \ + file://0001-Migrate-to-Qt-6.patch \ + " SRCREV = "c02692a3c20d9aed1192137a67d5be882c60e71f" S = "${WORKDIR}/git" -inherit qmake5 +inherit qt6-qmake FILES:${PN} += "${OE_QMAKE_PATH_QML}/QtQuick/Controls.2/AGL/*" RDEPENDS:${PN} += " \ - qtquickcontrols-qmlplugins \ - qtquickcontrols2-qmlplugins \ qtsvg-plugins \ " |