Skip to content
Snippets Groups Projects
Commit f7a8627f authored by Bryant Mairs's avatar Bryant Mairs
Browse files

QDesktopWidget() doesn't work in Qt5, use QApplication::desktop() instead.

parent 93c130c8
Branches
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ QGCSettingsWidget::QGCSettingsWidget(QWidget *parent, Qt::WindowFlags flags) : ...@@ -20,7 +20,7 @@ QGCSettingsWidget::QGCSettingsWidget(QWidget *parent, Qt::WindowFlags flags) :
// Center the window on the screen. // Center the window on the screen.
QRect position = frameGeometry(); QRect position = frameGeometry();
position.moveCenter(QDesktopWidget().availableGeometry().center()); position.moveCenter(QApplication::desktop()->availableGeometry().center());
move(position.topLeft()); move(position.topLeft());
// Add all protocols // Add all protocols
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment