Files
Happy-Reconstruction/Loading.cpp
2020-02-01 21:26:08 +08:00

39 lines
578 B
C++

#include "Loading.h"
#include "Classes/Reconstruction.h"
Loading::Loading(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
ui.label_2->hide();
ui.progressBar->setValue(0);
// todo ¼ÓÔØ
ui.progressBar->setValue(100);
ui.label_2->show();
ready2Enter = true;
}
Loading::~Loading()
{
}
void Loading::updateSlot()
{
ui.progressBar->setValue(currentValue);
}
void Loading::mousePressEvent(QMouseEvent *event)
{
if(ready2Enter)
{
if (event->button() == Qt::LeftButton)
{
this->hide();
Reconstruction *w = new Reconstruction();
w->show();
}
}
}