From 4286627bc87dba16b739a205708f3c7029da27e5 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Tue, 6 Jul 2021 00:33:22 +0800 Subject: Introduce multithreading. Fix Bugs. --- src/ui/WaitingDialog.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ui/WaitingDialog.cpp (limited to 'src/ui/WaitingDialog.cpp') diff --git a/src/ui/WaitingDialog.cpp b/src/ui/WaitingDialog.cpp new file mode 100644 index 00000000..8281385a --- /dev/null +++ b/src/ui/WaitingDialog.cpp @@ -0,0 +1,15 @@ +#include "ui/WaitingDialog.h" + +WaitingDialog::WaitingDialog(QWidget *parent) : QDialog(parent) { + auto *pb = new QProgressBar(); + pb->setRange(0, 0); + + auto *layout = new QVBoxLayout(); + layout->addWidget(pb); + this->setLayout(layout); + + this->setModal(true); + this->setWindowTitle(tr("Processing")); + this->setFixedSize(240, 42); + this->show(); +} -- cgit v1.2.3