diff options
author | saturneric <[email protected]> | 2023-12-24 10:16:45 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-24 10:16:45 +0000 |
commit | e52215cd31237bcfe343754bdfcfdde65e804432 (patch) | |
tree | 91c4bbbe5d86ffaddd6f111bfa6e27aff1b644a0 /src/ui/dialog/WaitingDialog.cpp | |
parent | fix: test the encrypt async api on gui app (diff) | |
download | GpgFrontend-e52215cd31237bcfe343754bdfcfdde65e804432.tar.gz GpgFrontend-e52215cd31237bcfe343754bdfcfdde65e804432.zip |
fix: use the new async encrypt symmetric api at gui app
Diffstat (limited to 'src/ui/dialog/WaitingDialog.cpp')
-rw-r--r-- | src/ui/dialog/WaitingDialog.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui/dialog/WaitingDialog.cpp b/src/ui/dialog/WaitingDialog.cpp index 953622fc..9c9a91d4 100644 --- a/src/ui/dialog/WaitingDialog.cpp +++ b/src/ui/dialog/WaitingDialog.cpp @@ -36,26 +36,20 @@ WaitingDialog::WaitingDialog(const QString& title, QWidget* parent) : GeneralDialog("WaitingDialog", parent) { auto* pb = new QProgressBar(); pb->setRange(0, 0); - pb->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + pb->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); pb->setTextVisible(false); auto* layout = new QVBoxLayout(); - layout->setContentsMargins(0, 0, 0, 0); - layout->setSpacing(0); layout->addWidget(pb); this->setLayout(layout); this->setModal(true); - this->raise(); this->setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); this->setWindowTitle(title); this->setAttribute(Qt::WA_DeleteOnClose); - this->setFixedSize(240, 42); - // move to a proper position this->movePosition2CenterOfParent(); - this->show(); } |