From 171411de85befef601011f9249d6d8b3460f1190 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 31 Jul 2019 23:46:33 -0700 Subject: [PATCH] minor timeline progress --- app/core.cpp | 3 ++- app/widget/timelineview/timelineview.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core.cpp b/app/core.cpp index abb61c3c3..5e41a8d3a 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -286,7 +286,6 @@ void Core::CreateNewSequence() new_sequence->AddNode(cb2); TimelineOutput* tb = new TimelineOutput(); - tb->AttachTimeline(olive::panel_focus_manager->MostRecentlyFocused()); new_sequence->AddNode(tb); ViewerOutput* vo = new ViewerOutput(); @@ -303,6 +302,8 @@ void Core::CreateNewSequence() cb1->Refresh(); cb2->Refresh(); + tb->AttachTimeline(olive::panel_focus_manager->MostRecentlyFocused()); + olive::panel_focus_manager->MostRecentlyFocused()->SetGraph(new_sequence.get()); // End test code diff --git a/app/widget/timelineview/timelineview.cpp b/app/widget/timelineview/timelineview.cpp index 001267db3..30b6d6fd6 100644 --- a/app/widget/timelineview/timelineview.cpp +++ b/app/widget/timelineview/timelineview.cpp @@ -5,6 +5,7 @@ TimelineView::TimelineView(QWidget *parent) : QGraphicsView(parent) { + setScene(&scene_); } void TimelineView::AddClip(ClipBlock *clip)