Add proper QResrouce system to libcalamaresui, finish up prepare checks

This also adds ImageRegistry, a SVG cache, a bunch of utility functions
for shared pixmaps in CalamaresUtilsGui and renames several qrc files
in viewmodules.
This commit is contained in:
Teo Mrnjavac 2014-08-26 15:18:30 +02:00
parent 0404413b05
commit d97bb47f09
26 changed files with 470 additions and 16 deletions

View file

@ -97,7 +97,23 @@ PrepareViewStep::PrepareViewStep( QObject* parent )
cDebug() << "enoughStorage, enoughRam, hasPower, hasInternet: "
<< enoughStorage << enoughRam << hasPower << hasInternet;
m_actualWidget->init();
QList< QPair< QString, bool > > checkEntries;
checkEntries.append( qMakePair(
tr( "has at least %1 GB available drive space" )
.arg( m_requiredStorageGB ),
enoughStorage ) );
checkEntries.append( qMakePair(
tr( "has at least %1 GB working memory" )
.arg( m_requiredRamGB ),
enoughRam ) );
checkEntries.append( qMakePair(
tr( "is plugged in to a power source" ),
hasPower ) );
checkEntries.append( qMakePair(
tr( "is connected to the Internet" ),
hasInternet ) );
m_actualWidget->init( checkEntries );
m_widget->layout()->removeWidget( waitingWidget );
waitingWidget->deleteLater();
m_widget->layout()->addWidget( m_actualWidget );