Refresh summary widgets on leave.

main
Teo Mrnjavac 9 years ago
parent 2c68802446
commit 0f40e8f3fa

@ -35,6 +35,7 @@ public:
explicit SummaryPage( const SummaryViewStep* thisViewStep, QWidget* parent = nullptr );
void onActivate();
void createContentWidget();
private:
Calamares::ViewStepList stepsForSummary( const Calamares::ViewStepList& allSteps ) const;
@ -44,7 +45,6 @@ private:
QVBoxLayout* m_layout = nullptr;
QWidget* m_contentWidget = nullptr;
void createContentWidget();
QLabel* createTitleLabel( const QString& text ) const;
QLabel* createBodyLabel( const QString& text ) const;

@ -104,3 +104,10 @@ SummaryViewStep::onActivate()
m_widget->onActivate();
}
void
SummaryViewStep::onLeave()
{
m_widget->createContentWidget();
}

@ -52,6 +52,7 @@ public:
QList< Calamares::job_ptr > jobs() const override;
void onActivate() override;
void onLeave() override;
private:
SummaryPage* m_widget;

Loading…
Cancel
Save