#include "pagelicense.h" #include #include #include #include #include "tools.h" PageLicense::PageLicense() : InstallerPage( ) { setupUi(); connect( m_checkAccept, SIGNAL(toggled(bool)), this, SIGNAL(changeNext(bool)) ); } void PageLicense::setupUi() { m_textLicense = new QTextEdit; m_checkAccept = new QCheckBox; m_textLicense->setReadOnly(true); QHBoxLayout* hbox_1 = new QHBoxLayout; hbox_1->addWidget(m_checkAccept); hbox_1->addStretch(); QVBoxLayout* vbox_1 = new QVBoxLayout; vbox_1->addWidget(m_textLicense); vbox_1->addLayout(hbox_1); setLayout(vbox_1); retranslateUi(); } void PageLicense::retranslateUi() { setTitle( tr("License") ); m_textLicense->setText( "" + tr( "

License

" "

License Agreement

" "

This operating system (the OS) is composed of many individual software components," " the copyrights on each of which belong to their respective owners." " Each component is distributed under their own license agreement.

" "

Installing, modifying or distributing this operating system, given to you as free archive," " you agree with all of the following.

" "

Warranties

" "

This software is distributed without warranty of any kind." " You assume all responsibility for the use of the operating system.

" "

Installing

" "

OS can be installed on any number of computers.

" "

Distribution

" "

Most of the software included in this operating system, allows you to freely modify, copy and " "distribute it. Also included in the OS software is distributed in the different conditions." " For more information please refer to the documentation accompanying a particular software component.

" ) + "" ); m_checkAccept->setText( tr("Accept") ); } void PageLicense::show() { emit changeNext( m_checkAccept->isChecked() ); }