29 lines
437 B
C++
29 lines
437 B
C++
#include "process.h"
|
|
#include "ui_process.h"
|
|
|
|
Process::Process(QWidget *parent) :
|
|
QDialog(parent),
|
|
ui(new Ui::Process)
|
|
{
|
|
ui->setupUi(this);
|
|
ui->progressBar->setValue(1);
|
|
|
|
setWindowFlags(Qt::FramelessWindowHint);
|
|
this->setModal(true);
|
|
}
|
|
|
|
Process::~Process()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void Process::on_percent(int percent)
|
|
{
|
|
ui->progressBar->setValue(percent);
|
|
}
|
|
|
|
void Process::on_done_close()
|
|
{
|
|
this->close();
|
|
}
|