From 9d1312e22acde85967351063b5c67d5109e0fc51 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 19 Jun 2019 18:56:57 -0500 Subject: [PATCH] Qt 5.13 update --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 21c02ce..201d10a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -20,7 +21,7 @@ MainWindow::MainWindow() { setWindowTitle(tr("Bullock")); - auto screenSize = QApplication::desktop()->screenGeometry(); + auto screenSize = QGuiApplication::screens().first()->geometry(); constexpr auto sizePct = 0.85; resize(screenSize.width() * sizePct, screenSize.height() * sizePct); move(-x(), -y());