mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix use of deprecated QApplication::desktop()
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <QLabel>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QScreen>
|
||||
#include <QSslSocket>
|
||||
#include <QString>
|
||||
#include <QUrlQuery>
|
||||
@@ -207,7 +208,7 @@ void CrashDialog::resizeEvent(QResizeEvent *)
|
||||
}
|
||||
void CrashDialog::recentre()
|
||||
{
|
||||
QRect scr = QApplication::desktop()->screenGeometry();
|
||||
QRect scr = QApplication::primaryScreen()->geometry();
|
||||
move(scr.center() - rect().center());
|
||||
|
||||
// when we're first shown, on this stage, move the cursor
|
||||
|
||||
Reference in New Issue
Block a user