[nostalgia/studio] Remove deprecated function call for Qt 5.13

This commit is contained in:
Gary Talent 2019-06-19 21:09:11 -05:00
parent 67b2764dc7
commit c9df80fb73

View File

@ -17,6 +17,7 @@
#include <QLineEdit> #include <QLineEdit>
#include <QMenuBar> #include <QMenuBar>
#include <QPluginLoader> #include <QPluginLoader>
#include <QScreen>
#include <QSettings> #include <QSettings>
#include <QTextStream> #include <QTextStream>
#include <QVector> #include <QVector>
@ -43,7 +44,7 @@ MainWindow::MainWindow(QString profilePath) {
readJson(in.readAll(), &m_profile); readJson(in.readAll(), &m_profile);
} }
auto screenSize = QApplication::desktop()->screenGeometry(); auto screenSize = QApplication::screens().first()->geometry();
// set window to 75% of screen width, and center NostalgiaStudioProfile // set window to 75% of screen width, and center NostalgiaStudioProfile
constexpr auto sizePct = 0.75; constexpr auto sizePct = 0.75;