QmlDesigner: Sync compilation with add/remove composition nodes

Now when there are no effects, default state is restored
Also some cleanups

Task-number: QDS-11064
Change-Id: Iad25adf2c0f855cb709c494d9f3eb47ef6207d36
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Amr Essam
2023-11-01 17:58:57 +02:00
committed by Amr Elsayed
parent 6a5e7920ce
commit 3789277328
2 changed files with 3 additions and 2 deletions

View File

@@ -104,6 +104,9 @@ void EffectMakerModel::setIsEmpty(bool val)
if (m_isEmpty != val) {
m_isEmpty = val;
emit isEmptyChanged();
if (m_isEmpty)
bakeShaders();
}
}

View File

@@ -163,8 +163,6 @@ private:
// Temp files to store shaders sources and binary data
QTemporaryFile m_fragmentSourceFile;
QTemporaryFile m_vertexSourceFile;
QTemporaryFile m_fragmentShaderFile;
QTemporaryFile m_vertexShaderFile;
QString m_fragmentSourceFilename;
QString m_vertexSourceFilename;
QString m_fragmentShaderFilename;