diff --git a/.ci/test_blocklist_qt6.txt b/.ci/test_blocklist_qt6.txt index 421d1c490332..cfbe7f6687ac 100644 --- a/.ci/test_blocklist_qt6.txt +++ b/.ci/test_blocklist_qt6.txt @@ -36,6 +36,7 @@ PyQgsStyleStorageMssql # To be fixed PyQgsAnnotation PyQgsAuthenticationSystem +PyQgsAuthManagerOAuth2OWSTest PyQgsBlockingProcess PyQgsCodeEditor PyQgsDelimitedTextProvider diff --git a/.docker/docker-qgis-build.sh b/.docker/docker-qgis-build.sh index 14da08465b35..3f383e2f4aec 100755 --- a/.docker/docker-qgis-build.sh +++ b/.docker/docker-qgis-build.sh @@ -108,7 +108,6 @@ cmake \ -DWITH_QTSERIALPORT=ON \ -DWITH_QTWEBKIT=${WITH_QT5} \ -DWITH_QTWEBENGINE=${WITH_QTWEBENGINE} \ - -DWITH_OAUTH2_PLUGIN=${WITH_QT5} \ -DWITH_PDF4QT=${WITH_PDF4QT} \ -DORACLE_INCLUDEDIR=/instantclient_19_9/sdk/include/ \ -DORACLE_LIBDIR=/instantclient_19_9/ \ diff --git a/external/qjsonwrapper/Json.cpp b/external/qjsonwrapper/Json.cpp index f51b029516e2..e8a602e2f18b 100644 --- a/external/qjsonwrapper/Json.cpp +++ b/external/qjsonwrapper/Json.cpp @@ -43,7 +43,14 @@ namespace QJsonWrapper QMetaProperty metaproperty = metaObject->property( i ); if ( metaproperty.isReadable() ) { - map[ QLatin1String( metaproperty.name() ) ] = object->property( metaproperty.name() ); + QVariant val = object->property( metaproperty.name() ); +#if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) + if ( ( val.metaType().flags() & QMetaType::IsEnumeration ) ) + { + val.convert( QMetaType::Int ); + } +#endif + map[ QLatin1String( metaproperty.name() ) ] = val; } } return map; @@ -60,9 +67,14 @@ namespace QJsonWrapper if ( property.isValid() ) { QVariant value = iter.value(); - if ( value.canConvert( property.type() ) ) +#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 ) + const QVariant::Type propertyType = property.type(); +#else + const QMetaType propertyType = property.metaType(); +#endif + if ( value.canConvert( propertyType ) ) { - value.convert( property.type() ); + value.convert( propertyType ); object->setProperty( iter.key().toLatin1(), value ); } else if ( QString( QLatin1String( "QVariant" ) ).compare( QLatin1String( property.typeName() ) ) == 0 )