You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
953 B
46 lines
953 B
#include "pagelanguage.h"
|
|
|
|
#include <QBoxLayout>
|
|
#include <QLabel>
|
|
#include <QComboBox>
|
|
|
|
#include "tools.h"
|
|
|
|
PageLanguage::PageLanguage(const QString& title) :
|
|
InstallerPage(title)
|
|
{
|
|
// widgets
|
|
m_labelWelcome = new QLabel( LoadTextFile(":/texts/welcome_en.txt") );
|
|
m_labelWelcome->setWordWrap( true );
|
|
m_labelWelcome->setOpenExternalLinks( true );
|
|
|
|
m_labelLanguage = new QLabel( tr("Choose a language: ") );
|
|
|
|
m_comboboxLanguages = new QComboBox;
|
|
|
|
//
|
|
QHBoxLayout* hbox_1 = new QHBoxLayout;
|
|
hbox_1->addWidget(m_comboboxLanguages);
|
|
hbox_1->addStretch();
|
|
|
|
//
|
|
QVBoxLayout* vbox_1 = new QVBoxLayout;
|
|
vbox_1->addWidget( m_labelWelcome );
|
|
vbox_1->addWidget( m_labelLanguage );
|
|
vbox_1->addLayout( hbox_1 );
|
|
vbox_1->addStretch();
|
|
|
|
m_Widget->setLayout(vbox_1);
|
|
|
|
// TODO: fill use translate files
|
|
m_comboboxLanguages->addItem( tr("English") );
|
|
m_comboboxLanguages->addItem( tr("Russian") );
|
|
}
|
|
|
|
bool PageLanguage::validate()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|