Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#include "WaitWnd.h"
|
||||
|
||||
#include "ui_WaitWndUi.h"
|
||||
|
||||
|
||||
WaitWnd::WaitWnd(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, m_ui(new Ui::WaitWnd)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
}
|
||||
|
||||
WaitWnd::~WaitWnd()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void WaitWnd::wait(const QString &text)
|
||||
{
|
||||
m_ui->progressBar->setMinimum(0);
|
||||
m_ui->progressBar->setMaximum(0);
|
||||
m_ui->progressBar->setValue(-1);
|
||||
|
||||
m_ui->label->setText(text);
|
||||
show();
|
||||
}
|
||||
|
||||
void WaitWnd::setStatus(int status)
|
||||
{
|
||||
m_ui->progressBar->setMinimum(0);
|
||||
m_ui->progressBar->setMaximum(100);
|
||||
m_ui->progressBar->setValue(status);
|
||||
}
|
||||
Reference in new issue
Block a user