Effect Maker: Notice property changes in helper nodes

Property changes in helper nodes are now properly noticed as unsaved
changes.

Change-Id: I757f519075d2f96be2b84b57b25b916665e26ba7
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-12-15 16:43:52 +02:00
parent c6b6a64e24
commit 2d166d0839

View File

@@ -124,6 +124,10 @@ void EffectMakerModel::addNode(const QString &nodeQenPath)
const QString path = EffectUtils::nodesSourcesPath() + "/common/" + requiredId + ".qen";
auto requiredNode = new CompositionNode({}, path);
connect(qobject_cast<EffectMakerUniformsModel *>(requiredNode->uniformsModel()),
&EffectMakerUniformsModel::dataChanged, this, [this] {
setHasUnsavedChanges(true);
});
requiredNode->setRefCount(1);
m_nodes.prepend(requiredNode);
}