PluginFactory in Users module.

This commit is contained in:
Teo Mrnjavac 2015-09-09 18:46:57 +02:00
parent bc9c451f33
commit 0bd64163a5
2 changed files with 8 additions and 5 deletions

View File

@ -23,6 +23,8 @@
#include "JobQueue.h"
#include "GlobalStorage.h"
CALAMARES_PLUGIN_FACTORY_DEFINITION( UsersViewStepFactory, registerPlugin<UsersViewStep>(); )
UsersViewStep::UsersViewStep( QObject* parent )
: Calamares::ViewStep( parent )
, m_widget( new UsersPage() )

View File

@ -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 <QVariant>
@ -31,9 +33,6 @@ class UsersPage;
class PLUGINDLLEXPORT UsersViewStep : public Calamares::ViewStep
{
Q_OBJECT
Q_PLUGIN_METADATA( IID "calamares.ViewModule/1.0" )
Q_INTERFACES( Calamares::ViewStep )
public:
explicit UsersViewStep( QObject* parent = nullptr );
@ -67,4 +66,6 @@ private:
QStringList m_defaultGroups;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( UsersViewStepFactory )
#endif // USERSPAGEPLUGIN_H