diff options
author | Saturneric <[email protected]> | 2021-07-06 03:01:22 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-06 03:01:22 +0000 |
commit | ad507f2373e6fada6b92e4f4a6d1374bca011c3d (patch) | |
tree | a58a794b410fb4ccdd52908ed0f62a5253ad9ba1 /src/ui/WaitingDialog.cpp | |
parent | Merge branch 'main' of https://github.com/saturneric/GpgFrontend (diff) | |
parent | Fix issues. (diff) | |
download | GpgFrontend-ad507f2373e6fada6b92e4f4a6d1374bca011c3d.tar.gz GpgFrontend-ad507f2373e6fada6b92e4f4a6d1374bca011c3d.zip |
Merge branch 'develop' into main
Diffstat (limited to 'src/ui/WaitingDialog.cpp')
-rw-r--r-- | src/ui/WaitingDialog.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/WaitingDialog.cpp b/src/ui/WaitingDialog.cpp new file mode 100644 index 00000000..bc21a17d --- /dev/null +++ b/src/ui/WaitingDialog.cpp @@ -0,0 +1,19 @@ +#include "ui/WaitingDialog.h" + +WaitingDialog::WaitingDialog(const QString &title, QWidget *parent) : QDialog(parent) { + auto *pb = new QProgressBar(); + pb->setRange(0, 0); + pb->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + + auto *layout = new QVBoxLayout(); + layout->setContentsMargins(0, 0, 0, 0); + layout->setSpacing(0); + layout->addWidget(pb); + this->setLayout(layout); + + this->setModal(true); + this->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); + this->setWindowTitle(title); + this->setFixedSize(240, 42); + this->show(); +} |