| 24 | #include <QScreen> |
| 25 | |
| 26 | ProgressForm::ProgressForm(QWidget *obj_parent) : |
| 27 | QWidget(obj_parent), |
| 28 | ui(new Ui::ProgressForm) |
| 29 | { |
| 30 | ui->setupUi(this); |
| 31 | if (QScreen *screen = QGuiApplication::primaryScreen()) { |
| 32 | QRect screenGeometry = screen->geometry(); |
| 33 | move(screenGeometry.center() - rect().center()); |
| 34 | } |
| 35 | setFixedSize(size()); |
| 36 | setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint); |
| 37 | connect(ui->cancelButton, &QPushButton::clicked, this, &ProgressForm::cancelConfirm); |
| 38 | } |
| 39 | |
| 40 | ProgressForm::~ProgressForm() |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected