diff --git a/src/modules/license/LicenseViewStep.cpp b/src/modules/license/LicenseViewStep.cpp index e85a60ca9..01e3be0e0 100644 --- a/src/modules/license/LicenseViewStep.cpp +++ b/src/modules/license/LicenseViewStep.cpp @@ -26,6 +26,8 @@ #include +CALAMARES_PLUGIN_FACTORY_DEFINITION( LicenseViewStepFactory, registerPlugin(); ) + LicenseViewStep::LicenseViewStep( QObject* parent ) : Calamares::ViewStep( parent ) , m_widget( new LicensePage ) diff --git a/src/modules/license/LicenseViewStep.h b/src/modules/license/LicenseViewStep.h index 2ace36258..6229853ba 100644 --- a/src/modules/license/LicenseViewStep.h +++ b/src/modules/license/LicenseViewStep.h @@ -1,6 +1,7 @@ /* === This file is part of Calamares - === * * Copyright 2015, Anke Boersma + * Copyright 2015, Teo Mrnjavac * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,12 +20,12 @@ #ifndef LICENSEPAGEPLUGIN_H #define LICENSEPAGEPLUGIN_H +#include +#include +#include + #include #include - -#include "viewpages/ViewStep.h" -#include "PluginDllMacro.h" - #include class LicensePage; @@ -32,9 +33,6 @@ class LicensePage; class PLUGINDLLEXPORT LicenseViewStep : public Calamares::ViewStep { Q_OBJECT - Q_PLUGIN_METADATA( IID "calamares.ViewModule/1.0" ) - - Q_INTERFACES( Calamares::ViewStep ) public: explicit LicenseViewStep( QObject* parent = nullptr ); @@ -61,4 +59,6 @@ private: LicensePage* m_widget; }; +CALAMARES_PLUGIN_FACTORY_DECLARATION( LicenseViewStepFactory ) + #endif // LICENSEPAGEPLUGIN_H