diff --git a/src/modules/summaryq/Config.cpp b/src/modules/summaryq/Config.cpp index 603ed460d..e0f855ab5 100644 --- a/src/modules/summaryq/Config.cpp +++ b/src/modules/summaryq/Config.cpp @@ -68,7 +68,7 @@ SummaryModel::setSummary( const Calamares::ViewStepList& steps, bool withWidgets Q_EMIT endResetModel(); } -Config::Config( QObject* parent ) +Config::Config( Calamares::ViewStep* parent ) : QObject( parent ) , m_thisViewStep( static_cast< SummaryQmlViewStep* >( parent ) ) , m_summary( new SummaryModel( this ) ) diff --git a/src/modules/summaryq/Config.h b/src/modules/summaryq/Config.h index f8c00173d..97eaeadd5 100644 --- a/src/modules/summaryq/Config.h +++ b/src/modules/summaryq/Config.h @@ -12,13 +12,11 @@ #define SUMMARY_CONFIG_H #include "viewpages/ViewStep.h" + #include #include #include -class SummaryQmlViewStep; - - /** @brief Data for one step * * A step generally has a text description, but **may** have a @@ -61,7 +59,7 @@ class Config : public QObject, public QQmlParserStatus Q_PROPERTY( SummaryModel* summaryModel READ summaryModel CONSTANT FINAL ) public: - explicit Config( QObject* parent = nullptr ); + explicit Config( Calamares::ViewStep* parent = nullptr ); virtual void componentComplete() override; virtual void classBegin() override {} @@ -74,7 +72,7 @@ private: Calamares::ViewStepList stepsForSummary( const Calamares::ViewStepList& allSteps ) const; void retranslate(); - const SummaryQmlViewStep* m_thisViewStep; + const Calamares::ViewStep* m_thisViewStep; SummaryModel* m_summary; QString m_message;