forked from qt-creator/qt-creator
QmlDesigner: Implement effect maker preview zoom controls
Also fix a memory leak on removing a node. Fixes: QDS-10546 Change-Id: Ifc32b6d7f6f4c6b8ce63a080b159c8ae66865a79 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Amr Elsayed <amr.elsayed@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
@@ -48,7 +48,9 @@ void EffectMakerModel::addNode(const QString &nodeQenPath)
|
||||
void EffectMakerModel::removeNode(int idx)
|
||||
{
|
||||
beginRemoveRows({}, idx, idx);
|
||||
CompositionNode *node = m_nodes.at(idx);
|
||||
m_nodes.removeAt(idx);
|
||||
delete node;
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user