[users] Pass the Config object to the Page

- delay construction of the Page (widget) until it's needed
- hand the Config object to the Page on construction

This is prep-work for putting the configuration information into the
Config object, rather than in the UI elements.
This commit is contained in:
Adriaan de Groot 2020-07-25 15:21:04 +02:00
parent dab831b2ff
commit f9b114a67a
4 changed files with 32 additions and 11 deletions

View file

@ -29,6 +29,7 @@
#include <QObject>
#include <QVariant>
class Config;
class UsersPage;
class PLUGINDLLEXPORT UsersViewStep : public Calamares::ViewStep
@ -62,6 +63,8 @@ private:
QStringList m_defaultGroups;
SetHostNameJob::Actions m_actions;
Config* m_config;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( UsersViewStepFactory )