Commit d6cef4ad authored by luyikei's avatar luyikei

QQuickView: SetContextProperty before setSource

parent ec92e46c
......@@ -37,8 +37,8 @@ Timeline::Timeline( QWidget *parent )
{
m_container->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
m_container->setFocusPolicy( Qt::TabFocus );
m_view->setSource( QUrl( QStringLiteral( "qrc:/QML/main.qml" ) ) );
m_view->rootContext()->setContextProperty( "workflow", Core::instance()->workflow() );
m_view->setSource( QUrl( QStringLiteral( "qrc:/QML/main.qml" ) ) );
}
Timeline::~Timeline()
......
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