mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
[welcome] Restructure requirements checking
- Move widget behavior into its own container / widget class - Change the RequirementsChecker class to just check the requirements, returning a results list - Connect from the module manager to the results widget.
This commit is contained in:
parent
b6fed964ce
commit
bd27dda474
9 changed files with 251 additions and 177 deletions
|
@ -32,7 +32,7 @@ WelcomeViewStep::WelcomeViewStep( QObject* parent )
|
|||
, m_requirementsChecker( new RequirementsChecker( this ) )
|
||||
{
|
||||
emit nextStatusChanged( true );
|
||||
m_widget = new WelcomePage( m_requirementsChecker );
|
||||
m_widget = new WelcomePage();
|
||||
}
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ WelcomeViewStep::back()
|
|||
bool
|
||||
WelcomeViewStep::isNextEnabled() const
|
||||
{
|
||||
return m_requirementsChecker->verdict();
|
||||
return m_widget->verdict();
|
||||
}
|
||||
|
||||
|
||||
|
@ -131,4 +131,3 @@ WelcomeViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
cDebug() << "WARNING: no valid requirements map found in welcome "
|
||||
"module configuration.";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue