diff widgets/TransformFinder.cpp @ 1478:d39db4673676 by-id

Fix a number of Qt deprecation warnings
author Chris Cannam
date Wed, 03 Jul 2019 08:55:02 +0100
parents c8a6fd3f9dff
children b1f3b5678549
line wrap: on
line diff
--- a/widgets/TransformFinder.cpp	Tue Jul 02 19:05:45 2019 +0100
+++ b/widgets/TransformFinder.cpp	Wed Jul 03 08:55:02 2019 +0100
@@ -26,7 +26,7 @@
 #include <QDialogButtonBox>
 #include <QScrollArea>
 #include <QApplication>
-#include <QDesktopWidget>
+#include <QScreen>
 #include <QTimer>
 #include <QAction>
 
@@ -92,8 +92,8 @@
     connect(down, SIGNAL(triggered()), this, SLOT(down()));
     addAction(down);
 
-    QDesktopWidget *desktop = QApplication::desktop();
-    QRect available = desktop->availableGeometry();
+    QScreen *screen = QApplication::primaryScreen();
+    QRect available = screen->availableGeometry();
 
     int width = available.width() / 2;
     int height = available.height() / 2;