mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 03:45:38 -04:00
[libcalamaresui] Move requirements information out of welcome module.
- Move type and rename it; put in Calamares namespace - Emit signals from the viewmanager as results come in - Remove state changing from welcome view step based on its internal requirements checking (for now this breaks progressing past the welcome page) - Log checking of the requirements
This commit is contained in:
parent
24e04645b6
commit
27b921bde1
12 changed files with 106 additions and 37 deletions
|
@ -53,12 +53,12 @@ CheckerWidget::CheckerWidget( QWidget* parent )
|
|||
|
||||
|
||||
void
|
||||
CheckerWidget::init( const QList< PrepareEntry >& checkEntries )
|
||||
CheckerWidget::init( const Calamares::RequirementsList& checkEntries )
|
||||
{
|
||||
bool allChecked = true;
|
||||
bool requirementsSatisfied = true;
|
||||
|
||||
for ( const PrepareEntry& entry : checkEntries )
|
||||
for ( const auto& entry : checkEntries )
|
||||
{
|
||||
if ( !entry.checked )
|
||||
{
|
||||
|
@ -162,7 +162,7 @@ CheckerWidget::init( const QList< PrepareEntry >& checkEntries )
|
|||
|
||||
|
||||
void
|
||||
CheckerWidget::showDetailsDialog( const QList< PrepareEntry >& checkEntries )
|
||||
CheckerWidget::showDetailsDialog( const Calamares::RequirementsList& checkEntries )
|
||||
{
|
||||
QDialog* detailsDialog = new QDialog( this );
|
||||
QBoxLayout* mainLayout = new QVBoxLayout;
|
||||
|
@ -177,7 +177,7 @@ CheckerWidget::showDetailsDialog( const QList< PrepareEntry >& checkEntries )
|
|||
CalamaresUtils::unmarginLayout( entriesLayout );
|
||||
mainLayout->addLayout( entriesLayout );
|
||||
|
||||
for ( const PrepareEntry& entry : checkEntries )
|
||||
for ( const auto& entry : checkEntries )
|
||||
{
|
||||
if ( entry.enumerationText().isEmpty() )
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue