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.
calculate-utils-2.2-install.../src/pagefinish.cpp

37 lines
594 B

#include "pagefinish.h"
#include <QApplication>
#include <QDebug>
#include <QLabel>
#include <QBoxLayout>
#include "tools.h"
PageFinish::PageFinish(const QString& title) :
InstallerPage(title)
{
QLabel* label = new QLabel( LoadTextFile(":/texts/complete_en.txt") );
label->setWordWrap(true);
label->setAlignment( Qt::AlignLeft | Qt::AlignTop );
QVBoxLayout* vbox = new QVBoxLayout;
vbox->addWidget(label);
m_Widget->setLayout(vbox);
}
bool PageFinish::validate()
{
// last page, need finish
emit finish();
return true;
}
void PageFinish::show()
{
emit changePrev(false);
}