Removed deprecated QDesktopWidget for Qt 6

This commit is contained in:
thunder2 2025-07-18 03:23:54 +02:00 committed by Thunder
parent 3a8f7d5a2d
commit b93a31a33b
12 changed files with 44 additions and 17 deletions

View file

@ -29,7 +29,6 @@
#include <QLineEdit>
#include <QMessageBox>
#include <QDesktopWidget>
#include <iostream>
@ -49,7 +48,7 @@ StartDialog::StartDialog(QWidget *parent)
Settings->loadWidgetInformation(this);
/* Put the Login dialog in the screen center */
const QRect screen = QApplication::desktop()->screenGeometry();
const QRect screen = RsApplication::primaryScreenGeometry();
this->move( screen.center() - this->rect().center() );
/* get all available pgp private certificates....