mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
PluginFactory in Summary module.
This commit is contained in:
parent
0bd64163a5
commit
316909303c
2 changed files with 9 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue