Commit 161f10a7 authored by luyikei's avatar luyikei

Don't pass the Timeline object to the qml view

parent a726e825
...@@ -41,7 +41,6 @@ Timeline::Timeline( MainWindow* parent ) ...@@ -41,7 +41,6 @@ Timeline::Timeline( MainWindow* parent )
{ {
m_container->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); m_container->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_container->setFocusPolicy( Qt::TabFocus ); m_container->setFocusPolicy( Qt::TabFocus );
m_view->rootContext()->setContextProperty( QStringLiteral( "timeline" ), this );
m_view->rootContext()->setContextProperty( QStringLiteral( "mainwindow" ), parent ); m_view->rootContext()->setContextProperty( QStringLiteral( "mainwindow" ), parent );
m_view->rootContext()->setContextProperty( QStringLiteral( "workflow" ), Core::instance()->workflow() ); m_view->rootContext()->setContextProperty( QStringLiteral( "workflow" ), Core::instance()->workflow() );
m_view->setSource( QUrl( QStringLiteral( "qrc:/QML/main.qml" ) ) ); m_view->setSource( QUrl( QStringLiteral( "qrc:/QML/main.qml" ) ) );
......
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