|
|
|
@ -23,8 +23,11 @@
|
|
|
|
|
#include "modulesystem/RequirementsModel.h"
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
#include <QSortFilterProxyModel>
|
|
|
|
|
#include <QUrl>
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
class Config : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
@ -43,6 +46,14 @@ class Config : public QObject
|
|
|
|
|
* satisfied. See the model documentation for details.
|
|
|
|
|
*/
|
|
|
|
|
Q_PROPERTY( Calamares::RequirementsModel* requirementsModel READ requirementsModel CONSTANT FINAL )
|
|
|
|
|
/** @brief The requirements (from modules) that are **unsatisfied**
|
|
|
|
|
*
|
|
|
|
|
* This is the same as requirementsModel(), except filtered so
|
|
|
|
|
* that only those requirements that are not satisfied are exposed.
|
|
|
|
|
* Note that the type is different, so you should still use the
|
|
|
|
|
* requirementsModel() for overall status like *satisfiedMandatory*.
|
|
|
|
|
*/
|
|
|
|
|
Q_PROPERTY( QAbstractItemModel* unsatisfiedRequirements READ unsatisfiedRequirements CONSTANT FINAL )
|
|
|
|
|
|
|
|
|
|
Q_PROPERTY( QString languageIcon READ languageIcon CONSTANT FINAL )
|
|
|
|
|
|
|
|
|
@ -96,6 +107,8 @@ public slots:
|
|
|
|
|
///@brief The **global** requirements model, from ModuleManager
|
|
|
|
|
Calamares::RequirementsModel* requirementsModel() const;
|
|
|
|
|
|
|
|
|
|
QAbstractItemModel* unsatisfiedRequirements() const;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void countryCodeChanged( QString countryCode );
|
|
|
|
|
void localeIndexChanged( int localeIndex );
|
|
|
|
@ -112,7 +125,8 @@ signals:
|
|
|
|
|
private:
|
|
|
|
|
void initLanguages();
|
|
|
|
|
|
|
|
|
|
CalamaresUtils::Locale::LabelModel* m_languages;
|
|
|
|
|
CalamaresUtils::Locale::LabelModel* m_languages = nullptr;
|
|
|
|
|
std::unique_ptr< QSortFilterProxyModel > m_filtermodel;
|
|
|
|
|
|
|
|
|
|
QString m_languageIcon;
|
|
|
|
|
QString m_countryCode;
|
|
|
|
|