From 3664a62f984ba2565ca16e0bf3a76938c6a96bc1 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Tue, 27 Jun 2023 07:44:43 +0200 Subject: [PATCH] QtSupport: Fix compile with Qt6.2 Amends d2b61bf3f0462426c145326c79232358d154c912. Change-Id: Ieeac8f24b4472ae802aadbcf9667419d2af52453 Reviewed-by: Eike Ziller --- src/plugins/qtsupport/examplesparser.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/plugins/qtsupport/examplesparser.cpp b/src/plugins/qtsupport/examplesparser.cpp index 441db6a6ca0..d115dcf3fe0 100644 --- a/src/plugins/qtsupport/examplesparser.cpp +++ b/src/plugins/qtsupport/examplesparser.cpp @@ -303,18 +303,18 @@ expected_str> parseExamples(const QByteArray &manifestData, // ordered list of "known" categories // TODO this should be defined in the manifest -Q_GLOBAL_STATIC(QList, - defaultOrder, - {"Application Examples", - "Desktop", - "Mobile", - "Embedded", - "Graphics", - "Input/Output", - "Connectivity", - "Networking", - "Positioning & Location", - "Internationalization"}); +Q_GLOBAL_STATIC_WITH_ARGS(QList, + defaultOrder, + {QStringList() << "Application Examples" + << "Desktop" + << "Mobile" + << "Embedded" + << "Graphics" + << "Input/Output" + << "Connectivity" + << "Networking" + << "Positioning & Location" + << "Internationalization"}); static bool sortByHighlightedAndName(ExampleItem *first, ExampleItem *second) {