Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix disable bin effects action

parent 16fd7ffc
......@@ -118,6 +118,9 @@ AssetPanel::AssetPanel(QWidget *parent)
connect(m_effectStackWidget, &EffectStackView::seekToPos, this, &AssetPanel::seekToPos);
connect(m_effectStackWidget, &EffectStackView::reloadEffect, this, &AssetPanel::reloadEffect);
connect(m_transitionWidget, &TransitionStackView::seekToTransPos, this, &AssetPanel::seekToPos);
connect(m_effectStackWidget, &EffectStackView::updateEnabledState, [this]() {
m_enableStackButton->setActive(m_effectStackWidget->isStackEnabled());
});
}
void AssetPanel::showTransition(int tid, std::shared_ptr<AssetParameterModel> transitionModel)
......
......@@ -2901,7 +2901,7 @@ void Bin::setBinEffectsEnabled(bool enabled)
return;
}
disableEffects->blockSignals(true);
disableEffects->setChecked(enabled);
disableEffects->setChecked(!enabled);
disableEffects->blockSignals(false);
}
m_itemModel->setBinEffectsEnabled(enabled);
......
......@@ -527,6 +527,7 @@ void EffectStackModel::setEffectStackEnabled(bool enabled)
for (int i = 0; i < rootItem->childCount(); ++i) {
std::static_pointer_cast<AbstractEffectItem>(rootItem->child(i))->setEffectStackEnabled(enabled);
}
emit enabledStateChanged();
}
std::shared_ptr<AbstractEffectItem> EffectStackModel::getEffectStackRow(int row, std::shared_ptr<TreeItem> parentItem)
......
......@@ -161,6 +161,7 @@ signals:
/** @brief: This signal is connected to the project clip for bin clips and activates the reload of effects on child (timeline) producers
*/
void modelChanged();
void enabledStateChanged();
};
#endif
......@@ -173,6 +173,7 @@ void EffectStackView::setModel(std::shared_ptr<EffectStackModel> model, const QS
qDebug() << "MUTEX UNLOCK!!!!!!!!!!!! setmodel";
loadEffects();
connect(m_model.get(), &EffectStackModel::dataChanged, this, &EffectStackView::refresh);
connect(m_model.get(), &EffectStackModel::enabledStateChanged, this, &EffectStackView::updateEnabledState);
// m_builtStack->setModel(model, stackOwner());
}
......
......@@ -104,6 +104,7 @@ signals:
void doActivateEffect(QModelIndex);
void seekToPos(int);
void reloadEffect(const QString &path);
void updateEnabledState();
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment