EffectMaker: Enable the enable node feature

Also corrected an include

Change-Id: I2c1c2385f30edbd6e5f53e81fc4794a0cc3e56d9
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2023-11-02 12:43:59 +02:00
parent 3789277328
commit eabebac670
2 changed files with 7 additions and 13 deletions

View File

@@ -13,7 +13,7 @@
#include <projectexplorer/projecttree.h>
#include <projectexplorer/target.h>
#include <qtsupport/qtkitinformation.h>
#include <qtsupport/qtkitaspect.h>
#include <utils/qtcassert.h>
#include <utils/process.h>
@@ -93,6 +93,8 @@ bool EffectMakerModel::setData(const QModelIndex &index, const QVariant &value,
if (role == EnabledRole) {
m_nodes.at(index.row())->setIsEnabled(value.toBool());
bakeShaders();
emit dataChanged(index, index, {role});
}
@@ -1060,4 +1062,3 @@ void EffectMakerModel::clearImageWatchers()
}
} // namespace EffectMaker