validations added for moving and trimming

This commit is contained in:
itsmattkc
2019-08-22 14:52:52 +10:00
parent 51a441bc29
commit 6b24ac69d6
8 changed files with 114 additions and 33 deletions
+3 -2
View File
@@ -77,7 +77,8 @@ void TimelineView::ImportTool::DragEnter(QDragEnterEvent *event)
ghost->SetIn(ghost_start);
ghost->SetOut(ghost_start + footage_duration);
ghost->SetData(QVariant::fromValue(stream));
ghost->setData(0, QVariant::fromValue(stream));
ghost->SetMode(TimelineViewGhostItem::kMove);
parent()->AddGhost(ghost);
@@ -151,7 +152,7 @@ void TimelineView::ImportTool::DragDrop(QDropEvent *event)
media->setParent(&node_memory_manager);
clip->set_length(ghost->Length());
media->SetFootage(ghost->data().value<StreamPtr>()->footage());
media->SetFootage(ghost->data(0).value<StreamPtr>()->footage());
NodeParam::ConnectEdge(media->texture_output(), clip->texture_input());