Commit ad339ef5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

minor remap fixes

parent cedc847d
Pipeline #67466 passed with stage
in 17 minutes and 58 seconds
......@@ -4584,8 +4584,13 @@ void Bin::remapCurrent()
consumer.run();
Fun undo = []() { return true; };
Fun redo = []() { return true; };
auto id = ClipCreator::createClipFromFile(dir.absoluteFilePath(renderName), getCurrentFolder(), pCore->projectItemModel(), undo, redo);
std::function<void(const QString &)> callBack = [this](const QString &binId) {
selectClipById(binId);
};
auto id = ClipCreator::createClipFromFile(dir.absoluteFilePath(renderName), getCurrentFolder(), pCore->projectItemModel(), undo, redo, callBack);
pCore->pushUndo(undo, redo, i18n("Add clip remap"));
selectClipById(id);
}
}
......@@ -56,7 +56,6 @@ RemapView::RemapView(QWidget *parent)
m_offset = qCeil(m_lineHeight / 4);
setFixedHeight(size * 4);
setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
setEnabled(false);
}
void RemapView::updateInPos(int pos)
......@@ -865,11 +864,13 @@ TimeRemap::TimeRemap(QWidget *parent)
connect(button_next, &QToolButton::clicked, m_view, &RemapView::goNext);
connect(button_prev, &QToolButton::clicked, m_view, &RemapView::goPrev);
connect(move_next, &QCheckBox::toggled, m_view, &RemapView::toggleMoveNext);
setEnabled(false);
}
void TimeRemap::setClip(std::shared_ptr<ProjectClip> clip, int in, int out)
{
if (!clip->statusReady() || clip->clipType() != ClipType::Playlist) {
qDebug()<<"===== CLIP NOT READY; TYPE; "<<clip->clipType();
m_clip = nullptr;
setEnabled(false);
return;
......
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