mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
PluginFactory in Welcome module.
This commit is contained in:
parent
d91f00f334
commit
420c2cf7c4
2 changed files with 8 additions and 5 deletions
|
@ -24,6 +24,8 @@
|
|||
|
||||
#include <QVariant>
|
||||
|
||||
CALAMARES_PLUGIN_FACTORY_DEFINITION( WelcomeViewStepFactory, registerPlugin<WelcomeViewStep>(); )
|
||||
|
||||
WelcomeViewStep::WelcomeViewStep( QObject* parent )
|
||||
: Calamares::ViewStep( parent )
|
||||
, m_requirementsChecker( new RequirementsChecker( this ) )
|
||||
|
|
|
@ -21,8 +21,10 @@
|
|||
|
||||
#include <QObject>
|
||||
|
||||
#include "viewpages/ViewStep.h"
|
||||
#include "PluginDllMacro.h"
|
||||
#include <utils/PluginFactory.h>
|
||||
#include <viewpages/ViewStep.h>
|
||||
|
||||
#include <PluginDllMacro.h>
|
||||
|
||||
#include <QVariantMap>
|
||||
|
||||
|
@ -32,9 +34,6 @@ class RequirementsChecker;
|
|||
class PLUGINDLLEXPORT WelcomeViewStep : public Calamares::ViewStep
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA( IID "calamares.ViewModule/1.0" )
|
||||
|
||||
Q_INTERFACES( Calamares::ViewStep )
|
||||
|
||||
public:
|
||||
explicit WelcomeViewStep( QObject* parent = nullptr );
|
||||
|
@ -63,4 +62,6 @@ private:
|
|||
RequirementsChecker* m_requirementsChecker;
|
||||
};
|
||||
|
||||
CALAMARES_PLUGIN_FACTORY_DECLARATION( WelcomeViewStepFactory )
|
||||
|
||||
#endif // WELCOMEPAGEPLUGIN_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue