Branding in greeting module.

This commit is contained in:
Teo Mrnjavac 2014-10-16 16:58:58 +02:00
parent 90e10f63fa
commit 8e38a03cca

View File

@ -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 );