@ -210,11 +210,6 @@ QmlViewStep::loadComplete()
// It is marked \internal in the Qt sources, but does exactly
// It is marked \internal in the Qt sources, but does exactly
// what is needed: sets up visual parent by replacing the root
// what is needed: sets up visual parent by replacing the root
// item, and handling resizes.
// item, and handling resizes.
QObject * config = this - > getConfig ( ) ;
if ( config )
{
m_qmlWidget - > engine ( ) - > rootContext ( ) - > setContextProperty ( " config " , config ) ;
}
m_qmlWidget - > setContent ( QUrl ( m_qmlFileName ) , m_qmlComponent , m_qmlObject ) ;
m_qmlWidget - > setContent ( QUrl ( m_qmlFileName ) , m_qmlComponent , m_qmlObject ) ;
showQml ( ) ;
showQml ( ) ;
}
}
@ -320,6 +315,12 @@ QmlViewStep::setConfigurationMap( const QVariantMap& configurationMap )
{
{
m_qmlFileName = searchQmlFile ( m_searchMethod , qmlFile , m_name ) ;
m_qmlFileName = searchQmlFile ( m_searchMethod , qmlFile , m_name ) ;
QObject * config = this - > getConfig ( ) ;
if ( config )
{
m_qmlWidget - > engine ( ) - > rootContext ( ) - > setContextProperty ( " config " , config ) ;
}
cDebug ( ) < < " QmlViewStep " < < moduleInstanceKey ( ) < < " loading " < < m_qmlFileName ;
cDebug ( ) < < " QmlViewStep " < < moduleInstanceKey ( ) < < " loading " < < m_qmlFileName ;
m_qmlComponent = new QQmlComponent (
m_qmlComponent = new QQmlComponent (
m_qmlWidget - > engine ( ) , QUrl ( m_qmlFileName ) , QQmlComponent : : CompilationMode : : Asynchronous ) ;
m_qmlWidget - > engine ( ) , QUrl ( m_qmlFileName ) , QQmlComponent : : CompilationMode : : Asynchronous ) ;