From ba942583b8d33a09807fb7496cadcf92b726839d Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Mon, 29 Jun 2020 12:29:31 +0300 Subject: [PATCH] QmlDesigner: Update 3D edit view on state change Change-Id: I56b16afe4d9ccab802d6e07f60b57e46a353cc26 Fixes: QDS-2378 Reviewed-by: Mahmoud Badri --- .../instances/qt5informationnodeinstanceserver.cpp | 7 +++++++ .../instances/qt5informationnodeinstanceserver.h | 1 + 2 files changed, 8 insertions(+) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp index 4fe5058adce..abed28978ee 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp @@ -1261,6 +1261,13 @@ void Qt5InformationNodeInstanceServer::changeIds(const ChangeIdsCommand &command } } +void Qt5InformationNodeInstanceServer::changeState(const ChangeStateCommand &command) +{ + Qt5NodeInstanceServer::changeState(command); + + render3DEditView(); +} + // update 3D view size when it changes in creator side void Qt5InformationNodeInstanceServer::update3DViewState(const Update3dViewStateCommand &command) { diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.h b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.h index 20a1c22da02..40668da55d6 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.h +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.h @@ -62,6 +62,7 @@ public: void changeAuxiliaryValues(const ChangeAuxiliaryCommand &command) override; void changePropertyBindings(const ChangeBindingsCommand &command) override; void changeIds(const ChangeIdsCommand &command) override; + void changeState(const ChangeStateCommand &command) override; private slots: void handleSelectionChanged(const QVariant &objs);