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.
51 lines
752 B
51 lines
752 B
#include "pagefinish.h"
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
|
|
#include <QLabel>
|
|
#include <QBoxLayout>
|
|
|
|
#include "tools.h"
|
|
|
|
PageFinish::PageFinish() :
|
|
InstallerPage()
|
|
{
|
|
setupUi();
|
|
}
|
|
|
|
void PageFinish::setupUi()
|
|
{
|
|
m_labelComplete = new QLabel;
|
|
|
|
m_labelComplete->setWordWrap(true);
|
|
m_labelComplete->setAlignment( Qt::AlignLeft | Qt::AlignTop );
|
|
|
|
QVBoxLayout* vbox = new QVBoxLayout;
|
|
|
|
vbox->addWidget(m_labelComplete);
|
|
|
|
setLayout(vbox);
|
|
|
|
retranslateUi();
|
|
}
|
|
|
|
void PageFinish::retranslateUi()
|
|
{
|
|
setTitle( tr("Complete") );
|
|
m_labelComplete->setText(
|
|
"<html>" +
|
|
tr(
|
|
"<h4>Congratulation!</h4>"
|
|
"<p>Installation complete."
|
|
"Press Finish for exit.</p>"
|
|
) +
|
|
"</html>"
|
|
);
|
|
}
|
|
|
|
void PageFinish::show()
|
|
{
|
|
emit toggleButtons(false);
|
|
}
|