forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user