qsswraper/process.cpp

29 lines
437 B
C++
Raw Normal View History

2021-04-30 08:56:46 +00:00
#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();
}