mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[welcome] [welcomeq] Chase API change for requirements progress
This commit is contained in:
parent
5c8a99c77b
commit
1a1fde1885
3 changed files with 8 additions and 6 deletions
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include "locale/LabelModel.h"
|
||||
#include "modulesystem/ModuleManager.h"
|
||||
#include "modulesystem/RequirementsModel.h"
|
||||
#include "utils/CalamaresUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "utils/NamedEnum.h"
|
||||
|
@ -90,8 +91,8 @@ WelcomePage::WelcomePage( Config* conf, QWidget* parent )
|
|||
&Calamares::ModuleManager::requirementsComplete,
|
||||
m_checkingWidget,
|
||||
&CheckerContainer::requirementsComplete );
|
||||
connect( Calamares::ModuleManager::instance(),
|
||||
&Calamares::ModuleManager::requirementsProgress,
|
||||
connect( Calamares::ModuleManager::instance()->requirementsModel(),
|
||||
&Calamares::RequirementsModel::progressMessageChanged,
|
||||
m_checkingWidget,
|
||||
&CheckerContainer::requirementsProgress );
|
||||
}
|
||||
|
|
|
@ -37,6 +37,10 @@ WelcomeQmlViewStep::WelcomeQmlViewStep( QObject* parent )
|
|||
, m_config( new Config( this ) )
|
||||
, m_requirementsChecker( new GeneralRequirements( this ) )
|
||||
{
|
||||
connect( Calamares::ModuleManager::instance(),
|
||||
&Calamares::ModuleManager::requirementsComplete,
|
||||
this,
|
||||
&WelcomeQmlViewStep::nextStatusChanged );
|
||||
}
|
||||
|
||||
|
||||
|
@ -49,9 +53,7 @@ WelcomeQmlViewStep::prettyName() const
|
|||
bool
|
||||
WelcomeQmlViewStep::isNextEnabled() const
|
||||
{
|
||||
// TODO: should return true
|
||||
// return m_config->property("isNextEnabled").toBool();
|
||||
return true;
|
||||
return m_config->requirementsModel()->satisfiedMandatory();
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -73,7 +73,6 @@ public:
|
|||
QObject* getConfig() override;
|
||||
|
||||
private:
|
||||
// TODO: a generic QML viewstep should return a config object from a method
|
||||
Config* m_config;
|
||||
GeneralRequirements* m_requirementsChecker;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue