From 2e79e1715b0baf1ec1c07b914aa7959bdc4edfd3 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 19 May 2020 13:18:43 +0200 Subject: [PATCH] QmlDesigner: Fix crash for missing registration of ChangeLanguageCommand Change-Id: Ieef35ef5daa19615375cc4c7b2b0b62667df7b67 Reviewed-by: Thomas Hartmann --- .../nodeinstanceserverinterface.cpp | 63 ++++++++++--------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.cpp b/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.cpp index 307b7581997..ad4733ceb8e 100644 --- a/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.cpp +++ b/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceserverinterface.cpp @@ -26,44 +26,44 @@ #include "nodeinstanceserverinterface.h" #include -#include "propertyabstractcontainer.h" -#include "propertyvaluecontainer.h" -#include "propertybindingcontainer.h" -#include "instancecontainer.h" -#include "createinstancescommand.h" -#include "createscenecommand.h" -#include "update3dviewstatecommand.h" -#include "changevaluescommand.h" -#include "changebindingscommand.h" -#include "changeauxiliarycommand.h" -#include "changefileurlcommand.h" -#include "removeinstancescommand.h" -#include "clearscenecommand.h" -#include "removepropertiescommand.h" -#include "reparentinstancescommand.h" -#include "changeidscommand.h" -#include "changestatecommand.h" -#include "completecomponentcommand.h" #include "addimportcontainer.h" +#include "changeauxiliarycommand.h" +#include "changebindingscommand.h" +#include "changefileurlcommand.h" +#include "changeidscommand.h" +#include "changelanguagecommand.h" #include "changenodesourcecommand.h" #include "changeselectioncommand.h" -#include "inputeventcommand.h" -#include "view3dactioncommand.h" - -#include "informationchangedcommand.h" -#include "pixmapchangedcommand.h" -#include "valueschangedcommand.h" +#include "changestatecommand.h" +#include "changevaluescommand.h" #include "childrenchangedcommand.h" -#include "imagecontainer.h" -#include "statepreviewimagechangedcommand.h" +#include "clearscenecommand.h" +#include "completecomponentcommand.h" #include "componentcompletedcommand.h" -#include "synchronizecommand.h" -#include "tokencommand.h" -#include "removesharedmemorycommand.h" -#include "endpuppetcommand.h" +#include "createinstancescommand.h" +#include "createscenecommand.h" #include "debugoutputcommand.h" +#include "endpuppetcommand.h" +#include "imagecontainer.h" +#include "informationchangedcommand.h" +#include "inputeventcommand.h" +#include "instancecontainer.h" +#include "pixmapchangedcommand.h" +#include "propertyabstractcontainer.h" +#include "propertybindingcontainer.h" +#include "propertyvaluecontainer.h" #include "puppetalivecommand.h" #include "puppettocreatorcommand.h" +#include "removeinstancescommand.h" +#include "removepropertiescommand.h" +#include "removesharedmemorycommand.h" +#include "reparentinstancescommand.h" +#include "statepreviewimagechangedcommand.h" +#include "synchronizecommand.h" +#include "tokencommand.h" +#include "update3dviewstatecommand.h" +#include "valueschangedcommand.h" +#include "view3dactioncommand.h" #include @@ -212,6 +212,9 @@ void NodeInstanceServerInterface::registerCommands() qRegisterMetaType>("QPairIntInt"); qRegisterMetaTypeStreamOperators>("QPairIntInt"); + + qRegisterMetaType("ChangeLanguageCommand"); + qRegisterMetaTypeStreamOperators("ChangeLanguageCommand"); } }