From 27d414458e67e3c33bde131270f73233b737d8a5 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 10 Aug 2021 09:44:49 +0200 Subject: [PATCH] qmlpuppet: fix qt 5.15 builds Change-Id: I6d19624537a3980252d43624ecf24e110638225a Reviewed-by: Miikka Heikkinen Reviewed-by: Qt CI Bot --- .../qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp index d5acb9f582c..02e6f2df594 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/editor3d/generalhelper.cpp @@ -328,7 +328,8 @@ void GeneralHelper::storeToolState(const QString &sceneId, const QString &tool, handlePendingToolStateUpdate(); QVariant theState; // Convert JS arrays to QVariantLists for easier handling down the line - if (state.metaType().id() != QMetaType::QString && state.canConvert(QMetaType::QVariantList)) + // metaType().id() which only exist in Qt6 is the same as userType() + if (state.userType() != QMetaType::QString && state.canConvert(QMetaType::QVariantList)) theState = state.value(); else theState = state;