QmlDesigner: Register type for QtQuickDesignerTheme

This was for some reason working before, but should not have worked.
Qt 6.7.2 does require this.

Change-Id: I599e5d8ee3535eb633a08bb0d5605e70cbf42097
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2024-06-27 16:37:01 +02:00
parent 57f524fe17
commit 5036c1813d

View File

@@ -34,7 +34,8 @@ Theme::Theme(Utils::Theme *originTheme, QObject *parent)
"qmldesigner/propertyEditorQmlSources/imports/StudioTheme/InternalConstants.qml")
.toString();
QQmlEngine* engine = new QQmlEngine(this);
QQmlEngine *engine = new QQmlEngine(this);
setupTheme(engine);
QQmlComponent component(engine, QUrl::fromLocalFile(constantsPath));
if (component.status() == QQmlComponent::Ready) {