[summary] createContentWidget is called exactly once, refactor
This commit is contained in:
parent
d6fe30dfdb
commit
949f9e466f
@ -89,7 +89,10 @@ createBodyLabel( const QString& text, const QPalette& bodyPalette )
|
||||
void
|
||||
SummaryPage::onActivate()
|
||||
{
|
||||
createContentWidget();
|
||||
delete m_contentWidget; // It might have been created previously
|
||||
m_contentWidget = new QWidget;
|
||||
m_layout = new QVBoxLayout( m_contentWidget );
|
||||
CalamaresUtils::unmarginLayout( m_layout );
|
||||
|
||||
QFont titleFont = font();
|
||||
titleFont.setWeight( QFont::Light );
|
||||
@ -184,16 +187,6 @@ SummaryPage::stepsForSummary( const Calamares::ViewStepList& allSteps ) const
|
||||
return steps;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SummaryPage::createContentWidget()
|
||||
{
|
||||
delete m_contentWidget;
|
||||
m_contentWidget = new QWidget;
|
||||
m_layout = new QVBoxLayout( m_contentWidget );
|
||||
CalamaresUtils::unmarginLayout( m_layout );
|
||||
}
|
||||
|
||||
void
|
||||
SummaryPage::onLeave()
|
||||
{
|
||||
|
@ -54,7 +54,6 @@ public:
|
||||
|
||||
private:
|
||||
Calamares::ViewStepList stepsForSummary( const Calamares::ViewStepList& allSteps ) const;
|
||||
void createContentWidget();
|
||||
|
||||
const SummaryViewStep* m_thisViewStep;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user