mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
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:
parent
0404413b05
commit
d97bb47f09
26 changed files with 470 additions and 16 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue