PluginFactory in Summary module.

main
Teo Mrnjavac 9 years ago
parent 0bd64163a5
commit 316909303c

@ -20,9 +20,11 @@
#include "SummaryPage.h"
CALAMARES_PLUGIN_FACTORY_DEFINITION( SummaryViewStepFactory, registerPlugin<SummaryViewStep>(); )
SummaryViewStep::SummaryViewStep( QObject* parent )
: Calamares::ViewStep( parent )
, m_widget( new SummaryPage() )
, m_widget( new SummaryPage( this ) )
{
emit nextStatusChanged( true );
}

@ -21,17 +21,16 @@
#include <QObject>
#include "viewpages/ViewStep.h"
#include "PluginDllMacro.h"
#include <utils/PluginFactory.h>
#include <viewpages/ViewStep.h>
#include <PluginDllMacro.h>
class SummaryPage;
class PLUGINDLLEXPORT SummaryViewStep : public Calamares::ViewStep
{
Q_OBJECT
Q_PLUGIN_METADATA( IID "calamares.ViewModule/1.0" )
Q_INTERFACES( Calamares::ViewStep )
public:
explicit SummaryViewStep( QObject* parent = nullptr );
@ -58,4 +57,6 @@ private:
SummaryPage* m_widget;
};
CALAMARES_PLUGIN_FACTORY_DECLARATION( SummaryViewStepFactory )
#endif // SUMMARYPAGEPLUGIN_H

Loading…
Cancel
Save