diff options
author | Saturneric <[email protected]> | 2021-07-06 02:56:19 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-06 02:56:19 +0000 |
commit | cdaee767e93430a3495a2140ad6f81698d3458ba (patch) | |
tree | d1c1fc6a55daff71b66c80e99a96909d2c16c45a /src/ui/WaitingDialog.cpp | |
parent | Edit Project Configuration (diff) | |
download | GpgFrontend-cdaee767e93430a3495a2140ad6f81698d3458ba.tar.gz GpgFrontend-cdaee767e93430a3495a2140ad6f81698d3458ba.zip |
Fix issues.
Improve UI.
Diffstat (limited to 'src/ui/WaitingDialog.cpp')
-rw-r--r-- | src/ui/WaitingDialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/WaitingDialog.cpp b/src/ui/WaitingDialog.cpp index 8281385a..bc21a17d 100644 --- a/src/ui/WaitingDialog.cpp +++ b/src/ui/WaitingDialog.cpp @@ -1,15 +1,19 @@ #include "ui/WaitingDialog.h" -WaitingDialog::WaitingDialog(QWidget *parent) : QDialog(parent) { +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->setWindowTitle(tr("Processing")); + this->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); + this->setWindowTitle(title); this->setFixedSize(240, 42); this->show(); } |