[libcalamaresui] Load QML on startup
This commit is contained in:
parent
5973dbf74c
commit
ff03235e33
@ -69,6 +69,7 @@ ExecutionViewStep::ExecutionViewStep( QObject* parent )
|
||||
innerLayout->addWidget( m_label );
|
||||
|
||||
cDebug() << "QML import paths:" << Logger::DebugList( m_qmlShow->engine()->importPathList() );
|
||||
loadQml();
|
||||
|
||||
connect( JobQueue::instance(), &JobQueue::progress, this, &ExecutionViewStep::updateFromJobQueue );
|
||||
|
||||
@ -134,15 +135,20 @@ ExecutionViewStep::isAtEnd() const
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ExecutionViewStep::onActivate()
|
||||
ExecutionViewStep::loadQml()
|
||||
{
|
||||
if ( !m_qmlShowLoaded && !Calamares::Branding::instance()->slideshowPath().isEmpty() )
|
||||
{
|
||||
m_qmlShow->setSource( QUrl::fromLocalFile( Calamares::Branding::instance()->slideshowPath() ) );
|
||||
m_qmlShowLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ExecutionViewStep::onActivate()
|
||||
{
|
||||
loadQml();
|
||||
|
||||
JobQueue* queue = JobQueue::instance();
|
||||
foreach ( const QString& instanceKey, m_jobInstanceKeys )
|
||||
|
@ -65,6 +65,7 @@ private:
|
||||
|
||||
QStringList m_jobInstanceKeys;
|
||||
|
||||
void loadQml(); //< Loads the slideshow QML (from branding)
|
||||
void updateFromJobQueue( qreal percent, const QString& message );
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user