Commit 0d3a62a4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Timeline: Let the TracksScene live without & across projects

parent 13563aa1
...@@ -53,6 +53,7 @@ Timeline::Timeline( QWidget *parent ) ...@@ -53,6 +53,7 @@ Timeline::Timeline( QWidget *parent )
connect( Core::getInstance(), SIGNAL( projectLoading( Project* ) ), connect( Core::getInstance(), SIGNAL( projectLoading( Project* ) ),
this, SLOT( projectLoading( Project* ) ), Qt::DirectConnection ); this, SLOT( projectLoading( Project* ) ), Qt::DirectConnection );
m_tracksScene = new TracksScene( this );
} }
Timeline::~Timeline() Timeline::~Timeline()
...@@ -78,9 +79,7 @@ Timeline::initialize() ...@@ -78,9 +79,7 @@ Timeline::initialize()
delete m_tracksControls; delete m_tracksControls;
delete m_tracksRuler; delete m_tracksRuler;
delete m_tracksView; delete m_tracksView;
delete m_tracksScene;
m_tracksScene = new TracksScene( this );
m_tracksView = new TracksView( m_tracksScene, m_mainWorkflow, m_renderer, m_ui.tracksFrame ); m_tracksView = new TracksView( m_tracksScene, m_mainWorkflow, m_renderer, m_ui.tracksFrame );
m_tracksView->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); m_tracksView->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_tracksView->scale(1, 1); m_tracksView->scale(1, 1);
......
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