Commit f7a8627f authored by Bryant Mairs's avatar Bryant Mairs

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

parent 93c130c8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment