diff options
Diffstat (limited to 'src/ui/dialog/WaitingDialog.cpp')
-rw-r--r-- | src/ui/dialog/WaitingDialog.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/ui/dialog/WaitingDialog.cpp b/src/ui/dialog/WaitingDialog.cpp index b0888581..9c9a91d4 100644 --- a/src/ui/dialog/WaitingDialog.cpp +++ b/src/ui/dialog/WaitingDialog.cpp @@ -1,5 +1,5 @@ /** - * Copyright (C) 2021 Saturneric + * Copyright (C) 2021 Saturneric <[email protected]> * * This file is part of GpgFrontend. * @@ -20,7 +20,7 @@ * the gpg4usb project, which is under GPL-3.0-or-later. * * All the source code of GpgFrontend was modified and released by - * Saturneric<[email protected]> starting on May 12, 2021. + * Saturneric <[email protected]> starting on May 12, 2021. * * SPDX-License-Identifier: GPL-3.0-or-later * @@ -28,7 +28,7 @@ #include "WaitingDialog.h" -#include "dialog/GeneralDialog.h" +#include "ui/dialog/GeneralDialog.h" namespace GpgFrontend::UI { @@ -36,23 +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); + this->movePosition2CenterOfParent(); this->show(); } |