mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Branding in greeting module.
This commit is contained in:
parent
90e10f63fa
commit
8e38a03cca
1 changed files with 10 additions and 3 deletions
|
@ -21,6 +21,8 @@
|
||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
|
#include "Branding.h"
|
||||||
|
|
||||||
|
|
||||||
GreetingPage::GreetingPage( QWidget* parent )
|
GreetingPage::GreetingPage( QWidget* parent )
|
||||||
: QWidget()
|
: QWidget()
|
||||||
|
@ -28,10 +30,15 @@ GreetingPage::GreetingPage( QWidget* parent )
|
||||||
QBoxLayout *mainLayout = new QHBoxLayout;
|
QBoxLayout *mainLayout = new QHBoxLayout;
|
||||||
setLayout( mainLayout );
|
setLayout( mainLayout );
|
||||||
|
|
||||||
QLabel* text = new QLabel( tr( "<h1>Welcome to Calamares.</h1><br/>"
|
QLabel* text = new QLabel( tr( "<h1>Welcome to the %1 installer.</h1><br/>"
|
||||||
"This is some random welcome text. "
|
"This program will ask you some questions and "
|
||||||
"It should change depending on the branding config." ), this );
|
"set up %2 on your computer." )
|
||||||
|
.arg( Calamares::Branding::instance()->
|
||||||
|
string( Calamares::Branding::VersionedName ) )
|
||||||
|
.arg( Calamares::Branding::instance()->
|
||||||
|
string( Calamares::Branding::ProductName ) ), this );
|
||||||
text->setAlignment( Qt::AlignCenter );
|
text->setAlignment( Qt::AlignCenter );
|
||||||
|
text->setWordWrap( true );
|
||||||
|
|
||||||
mainLayout->addStretch();
|
mainLayout->addStretch();
|
||||||
mainLayout->addWidget( text );
|
mainLayout->addWidget( text );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue