|
|
@ -32,6 +32,9 @@ BlankViewStep::BlankViewStep( const QString& title, const QString& description,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QBoxLayout* layout = new QVBoxLayout();
|
|
|
|
QBoxLayout* layout = new QVBoxLayout();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constexpr int const marginWidth = 10;
|
|
|
|
|
|
|
|
constexpr int const spacingHeight = 10;
|
|
|
|
|
|
|
|
|
|
|
|
auto* label = new QLabel( title );
|
|
|
|
auto* label = new QLabel( title );
|
|
|
|
label->setAlignment( Qt::AlignHCenter );
|
|
|
|
label->setAlignment( Qt::AlignHCenter );
|
|
|
|
label->setFont( CalamaresUtils::largeFont() );
|
|
|
|
label->setFont( CalamaresUtils::largeFont() );
|
|
|
@ -39,17 +42,19 @@ BlankViewStep::BlankViewStep( const QString& title, const QString& description,
|
|
|
|
|
|
|
|
|
|
|
|
label = new QLabel( description );
|
|
|
|
label = new QLabel( description );
|
|
|
|
label->setWordWrap( true );
|
|
|
|
label->setWordWrap( true );
|
|
|
|
layout->addSpacing( 10 );
|
|
|
|
label->setMargin( marginWidth );
|
|
|
|
|
|
|
|
layout->addSpacing( spacingHeight );
|
|
|
|
layout->addWidget( label );
|
|
|
|
layout->addWidget( label );
|
|
|
|
|
|
|
|
|
|
|
|
if ( !details.isEmpty() )
|
|
|
|
if ( !details.isEmpty() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label = new QLabel( details );
|
|
|
|
label = new QLabel( details );
|
|
|
|
layout->addSpacing( 10 );
|
|
|
|
label->setMargin( marginWidth );
|
|
|
|
|
|
|
|
layout->addSpacing( spacingHeight );
|
|
|
|
layout->addWidget( label );
|
|
|
|
layout->addWidget( label );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
layout->addStretch( 10 );
|
|
|
|
layout->addStretch( 1 ); // Push the rest to the top
|
|
|
|
|
|
|
|
|
|
|
|
m_widget->setLayout( layout );
|
|
|
|
m_widget->setLayout( layout );
|
|
|
|
}
|
|
|
|
}
|
|
|
|