QmlDesigner: Add effect maker runtime nodes binding mechanism

Still some issues related to UI components because it's never tested
Also quick fix for generated paths on windows (not tested)

Task-number: QDS-10987
Change-Id: Ifed4b0f687e8da78206985e031692aa6c9faf947
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Amr Essam
2023-10-18 18:33:42 +03:00
committed by Amr Elsayed
parent a9a74992de
commit 12aeed97b3
7 changed files with 44 additions and 9 deletions

View File

@@ -7,8 +7,8 @@
#include "effectmakermodel.h"
#include "effectmakernodesmodel.h"
#include "effectmakerview.h"
#include "propertyhandler.h"
#include "nodeinstanceview.h"
#include "qmldesignerconstants.h"
#include "qmldesignerplugin.h"
#include "qqmlcontext.h"
@@ -65,6 +65,8 @@ EffectMakerWidget::EffectMakerWidget(EffectMakerView *view)
QmlDesigner::QmlDesignerPlugin::trackWidgetFocusTime(this, QmlDesigner::Constants::EVENT_EFFECTMAKER_TIME);
m_quickWidget->rootContext()->setContextProperty("g_propertyData", &g_propertyData);
auto map = m_quickWidget->registerPropertyMap("EffectMakerBackend");
map->setProperties({{"effectMakerNodesModel", QVariant::fromValue(m_effectMakerNodesModel.data())},
{"effectMakerModel", QVariant::fromValue(m_effectMakerModel.data())},