mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
[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:
parent
dab831b2ff
commit
f9b114a67a
4 changed files with 32 additions and 11 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue