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

remove automatic duration check on producer-changed event causing major slowdown

parent 0714380f
......@@ -74,20 +74,12 @@ TimelineWidget::TimelineWidget(KActionCollection *actionCollection, BinControlle
rootContext()->setContextProperty("transitionModel", m_transitionProxyModel.get());
setSource(QUrl(QStringLiteral("qrc:/qml/timeline.qml")));
m_model->tractor()->listen("producer-changed", this, (mlt_listener) tractorChanged);
m_thumbnailer = new ThumbnailProvider;
engine()->addImageProvider(QStringLiteral("thumbnail"), m_thumbnailer);
setFocusPolicy(Qt::StrongFocus);
//connect(&*m_model, SIGNAL(seeked(int)), this, SLOT(onSeeked(int)));
}
void TimelineWidget::tractorChanged(mlt_multitrack mtk, void *self)
{
TimelineWidget *me = (TimelineWidget*) (self);
if (me)
me->checkDuration();
}
void TimelineWidget::setSelection(QList<int> newSelection, int trackIndex, bool isMultitrack)
{
if (newSelection != selection()
......@@ -283,6 +275,7 @@ void TimelineWidget::buildFromMelt(Mlt::Tractor tractor)
qDebug() << "REQUESTING BUILD FROM MELT";
m_thumbnailer->resetProject();
constructTimelineFromMelt(m_model, tractor);
checkDuration();
}
void TimelineWidget::setUndoStack(std::weak_ptr<DocUndoStack> undo_stack)
......
......@@ -185,7 +185,6 @@ private:
static int m_duration;
void emitSelectedFromSelection();
void checkDuration();
static void tractorChanged(mlt_multitrack mtk, void *self);
std::unique_ptr<AssetTreeModel> m_transitionModel;
std::unique_ptr<AssetFilter> m_transitionProxyModel;
......
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