From f7a8627fb6101664eff3e03991fa5b1de285265b Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Tue, 24 Jun 2014 22:42:59 -0700 Subject: [PATCH] QDesktopWidget() doesn't work in Qt5, use QApplication::desktop() instead. --- src/ui/QGCSettingsWidget.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/QGCSettingsWidget.cc b/src/ui/QGCSettingsWidget.cc index fa61cc75db..0d7539d747 100644 --- a/src/ui/QGCSettingsWidget.cc +++ b/src/ui/QGCSettingsWidget.cc @@ -20,7 +20,7 @@ QGCSettingsWidget::QGCSettingsWidget(QWidget *parent, Qt::WindowFlags flags) : // Center the window on the screen. QRect position = frameGeometry(); - position.moveCenter(QDesktopWidget().availableGeometry().center()); + position.moveCenter(QApplication::desktop()->availableGeometry().center()); move(position.topLeft()); // Add all protocols -- GitLab