aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/WaitingDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-05 16:33:22 +0000
committerSaturneric <[email protected]>2021-07-05 16:33:22 +0000
commit4286627bc87dba16b739a205708f3c7029da27e5 (patch)
tree7c30ae2dcc8c58711ccd08543556cf989b1b89f6 /src/ui/WaitingDialog.cpp
parentFix the logic problem of the signature and encryption function. (diff)
downloadGpgFrontend-4286627bc87dba16b739a205708f3c7029da27e5.tar.gz
GpgFrontend-4286627bc87dba16b739a205708f3c7029da27e5.zip
Introduce multithreading.
Fix Bugs.
Diffstat (limited to '')
-rw-r--r--src/ui/WaitingDialog.cpp15
1 files changed, 15 insertions, 0 deletions
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();
+}