mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Use ProductWelcome branding image, if available.
This commit is contained in:
parent
a47fc0a897
commit
161046af43
1 changed files with 16 additions and 0 deletions
|
@ -121,6 +121,22 @@ CheckerWidget::init( const QList< PrepareEntry >& checkEntries )
|
||||||
|
|
||||||
if ( allChecked && requirementsSatisfied )
|
if ( allChecked && requirementsSatisfied )
|
||||||
{
|
{
|
||||||
|
if ( !Calamares::Branding::instance()->
|
||||||
|
imagePath( Calamares::Branding::ProductWelcome ).isEmpty() )
|
||||||
|
{
|
||||||
|
QPixmap theImage = QPixmap( Calamares::Branding::instance()->
|
||||||
|
imagePath( Calamares::Branding::ProductWelcome ) );
|
||||||
|
if ( !theImage.isNull() )
|
||||||
|
{
|
||||||
|
QLabel* imageLabel = new QLabel;
|
||||||
|
imageLabel->setContentsMargins( 4, CalamaresUtils::defaultFontHeight(), 4, 4 );
|
||||||
|
m_entriesLayout->addWidget( imageLabel );
|
||||||
|
imageLabel->setAlignment( Qt::AlignCenter );
|
||||||
|
imageLabel->setScaledContents( false );
|
||||||
|
|
||||||
|
imageLabel->setPixmap( theImage );
|
||||||
|
}
|
||||||
|
}
|
||||||
CALAMARES_RETRANSLATE(
|
CALAMARES_RETRANSLATE(
|
||||||
textLabel->setText( tr( "This program will ask you some questions and "
|
textLabel->setText( tr( "This program will ask you some questions and "
|
||||||
"set up %2 on your computer." )
|
"set up %2 on your computer." )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue