migrate to Qt6
This commit is contained in:
@@ -20,15 +20,18 @@
|
||||
#include "progressform.h"
|
||||
#include "ui_progressform.h"
|
||||
|
||||
#include <QDesktopWidget>
|
||||
#include <QMessageBox>
|
||||
#include <QScreen>
|
||||
|
||||
ProgressForm::ProgressForm(QWidget *obj_parent) :
|
||||
QWidget(obj_parent),
|
||||
ui(new Ui::ProgressForm)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
move(QApplication::desktop()->screen()->rect().center() - rect().center());
|
||||
if (QScreen *screen = QGuiApplication::primaryScreen()) {
|
||||
QRect screenGeometry = screen->geometry();
|
||||
move(screenGeometry.center() - rect().center());
|
||||
}
|
||||
setFixedSize(size());
|
||||
setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
|
||||
connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(cancelConfirm()));
|
||||
|
Reference in New Issue
Block a user