PluginFactory in Summary module.
This commit is contained in:
parent
0bd64163a5
commit
316909303c
@ -20,9 +20,11 @@
|
|||||||
|
|
||||||
#include "SummaryPage.h"
|
#include "SummaryPage.h"
|
||||||
|
|
||||||
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( SummaryViewStepFactory, registerPlugin<SummaryViewStep>(); )
|
||||||
|
|
||||||
SummaryViewStep::SummaryViewStep( QObject* parent )
|
SummaryViewStep::SummaryViewStep( QObject* parent )
|
||||||
: Calamares::ViewStep( parent )
|
: Calamares::ViewStep( parent )
|
||||||
, m_widget( new SummaryPage() )
|
, m_widget( new SummaryPage( this ) )
|
||||||
{
|
{
|
||||||
emit nextStatusChanged( true );
|
emit nextStatusChanged( true );
|
||||||
}
|
}
|
||||||
|
@ -21,17 +21,16 @@
|
|||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include "viewpages/ViewStep.h"
|
#include <utils/PluginFactory.h>
|
||||||
#include "PluginDllMacro.h"
|
#include <viewpages/ViewStep.h>
|
||||||
|
|
||||||
|
#include <PluginDllMacro.h>
|
||||||
|
|
||||||
class SummaryPage;
|
class SummaryPage;
|
||||||
|
|
||||||
class PLUGINDLLEXPORT SummaryViewStep : public Calamares::ViewStep
|
class PLUGINDLLEXPORT SummaryViewStep : public Calamares::ViewStep
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PLUGIN_METADATA( IID "calamares.ViewModule/1.0" )
|
|
||||||
|
|
||||||
Q_INTERFACES( Calamares::ViewStep )
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SummaryViewStep( QObject* parent = nullptr );
|
explicit SummaryViewStep( QObject* parent = nullptr );
|
||||||
@ -58,4 +57,6 @@ private:
|
|||||||
SummaryPage* m_widget;
|
SummaryPage* m_widget;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
CALAMARES_PLUGIN_FACTORY_DECLARATION( SummaryViewStepFactory )
|
||||||
|
|
||||||
#endif // SUMMARYPAGEPLUGIN_H
|
#endif // SUMMARYPAGEPLUGIN_H
|
||||||
|
Loading…
Reference in New Issue
Block a user