mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-02 03:06:31 -04:00
Removed deprecated QDesktopWidget for Qt 6
This commit is contained in:
parent
3a8f7d5a2d
commit
b93a31a33b
12 changed files with 44 additions and 17 deletions
|
@ -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....
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue