From 2da362ade06db812439e423408e3d5eac6ace2f6 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 2 Jan 2025 08:26:53 +0000 Subject: [PATCH] qtbase: update patch Update patch to work with latest changed. Pick-to: 6.8 Change-Id: I9834ec4d39ae657d4b89530ae454198db339f04e Reviewed-by: Ari Parkkila (cherry picked from commit 28deeb771fa71e257963c99ff241d7a857db84bb) Reviewed-by: Qt Cherry-pick Bot --- ...nfo-allow-to-set-qt.conf-from-the-outside-u.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes-qt/qt6/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt6/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch index 181c88c..30d33b0 100644 --- a/recipes-qt/qt6/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ b/recipes-qt/qt6/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch @@ -1,4 +1,4 @@ -From 4064b8757cbb28588fdff2529ea203bf3eabc579 Mon Sep 17 00:00:00 2001 +From 2c38d67692e26c7909be77b1eb4d54cecb14c5ad Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 26 Sep 2012 17:22:30 +0200 Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the @@ -20,20 +20,20 @@ Signed-off-by: Martin Jansa 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp -index 92729b06f1..dac7857600 100644 +index 94f3e60deb..d778b71eae 100644 --- a/src/corelib/global/qlibraryinfo.cpp +++ b/src/corelib/global/qlibraryinfo.cpp -@@ -101,7 +101,12 @@ static QSettings *findConfiguration() +@@ -102,7 +102,12 @@ static std::unique_ptr findConfiguration() if (qtconfManualPath) - return new QSettings(*qtconfManualPath, QSettings::IniFormat); + return std::make_unique(*qtconfManualPath, QSettings::IniFormat); - QString qtconfig = QStringLiteral(":/qt/etc/qt.conf"); + QByteArray config = getenv("OE_QMAKE_QTCONF_PATH"); + QString qtconfig = QFile::decodeName(config); + if (QFile::exists(qtconfig)) -+ return new QSettings(qtconfig, QSettings::IniFormat); ++ return std::make_unique(qtconfig, QSettings::IniFormat); + + qtconfig = QStringLiteral(":/qt/etc/qt.conf"); if (QFile::exists(qtconfig)) - return new QSettings(qtconfig, QSettings::IniFormat); + return std::make_unique(qtconfig, QSettings::IniFormat); #ifdef Q_OS_DARWIN