PluginFactory in Welcome module.

main
Teo Mrnjavac 9 years ago
parent d91f00f334
commit 420c2cf7c4

@ -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…
Cancel
Save