diff main/main.cpp @ 2306:a1c14880404b

Merge from branch by-id
author Chris Cannam
date Wed, 17 Jul 2019 14:28:24 +0100
parents a54082a29106 eb7f4579e5cc
children 3dacb1001537
line wrap: on
line diff
--- a/main/main.cpp	Fri Jun 21 13:30:17 2019 +0100
+++ b/main/main.cpp	Wed Jul 17 14:28:24 2019 +0100
@@ -31,7 +31,7 @@
 
 #include <QMetaType>
 #include <QApplication>
-#include <QDesktopWidget>
+#include <QScreen>
 #include <QMessageBox>
 #include <QTranslator>
 #include <QLocale>
@@ -404,8 +404,8 @@
                          splash, SLOT(finishSplash(QWidget *)));
     }
 
-    QDesktopWidget *desktop = QApplication::desktop();
-    QRect available = desktop->availableGeometry();
+    QScreen *screen = QApplication::primaryScreen();
+    QRect available = screen->availableGeometry();
 
     int width = (available.width() * 2) / 3;
     int height = available.height() / 2;