mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -04:00
Block the install process if an entry is required but unsatisfied.
This commit is contained in:
parent
87711c89fc
commit
5434a04ebc
5 changed files with 100 additions and 25 deletions
|
@ -47,11 +47,11 @@ PreparePage::PreparePage( QWidget* parent )
|
|||
|
||||
|
||||
void
|
||||
PreparePage::init( const QList< QPair< QString, bool > > &checkEntries )
|
||||
PreparePage::init( const QList< PrepareEntry >& checkEntries )
|
||||
{
|
||||
for ( const QPair< QString, bool >& entry : checkEntries )
|
||||
for ( const PrepareEntry& entry : checkEntries )
|
||||
{
|
||||
PrepareCheckWidget* pcw = new PrepareCheckWidget( entry.first, entry.second );
|
||||
PrepareCheckWidget* pcw = new PrepareCheckWidget( entry.text, entry.checked );
|
||||
m_entriesLayout->addWidget( pcw );
|
||||
pcw->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue