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

@@ -5,6 +5,7 @@
#include "effectutils.h"
#include "effectmakeruniformsmodel.h"
#include "propertyhandler.h"
#include "uniform.h"
#include <QFile>
@@ -100,8 +101,11 @@ void CompositionNode::parse(const QString &qenPath)
// parse properties
QJsonArray jsonProps = json.value("properties").toArray();
for (const auto /*QJsonValueRef*/ &prop : jsonProps)
m_unifomrsModel.addUniform(new Uniform(prop.toObject()));
for (const auto /*QJsonValueRef*/ &prop : jsonProps) {
const auto uniform = new Uniform(prop.toObject());
m_unifomrsModel.addUniform(uniform);
g_propertyData.insert(uniform->name(), uniform->value());
}
// Seek through code to get tags
QStringList shaderCodeLines;