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 monitor overlay not showing for compositions

parent 2d526289
......@@ -23,6 +23,7 @@
#include "assets/model/assetparametermodel.hpp"
#include "assets/keyframes/model/keyframemodellist.hpp"
#include "core.h"
#include "monitor/monitor.h"
#include <QComboBox>
#include <QDebug>
......@@ -70,6 +71,15 @@ void TransitionStackView::setModel(const std::shared_ptr<AssetParameterModel> &m
emit seekToTransPos(pos + clipIn);
});
initKeyframeView(true);
pCore->getMonitor(m_model->monitorId)->slotShowEffectScene(needsMonitorEffectScene());
}
void TransitionStackView::unsetModel()
{
if (m_model) {
pCore->getMonitor(m_model->monitorId)->slotShowEffectScene(MonitorSceneDefault);
}
AssetParameterView::unsetModel();
}
void TransitionStackView::updateTrack(int newTrack)
......
......@@ -34,6 +34,7 @@ class TransitionStackView : public AssetParameterView
public:
TransitionStackView(QWidget *parent = nullptr);
void setModel(const std::shared_ptr<AssetParameterModel> &model, QSize frameSize, bool addSpacer = false);
void unsetModel();
ObjectId stackOwner() const;
private slots:
......
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