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

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

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

Loading…
Cancel
Save