Browse Source

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

QGC4.4
Bryant Mairs 11 years ago
parent
commit
f7a8627fb6
  1. 2
      src/ui/QGCSettingsWidget.cc

2
src/ui/QGCSettingsWidget.cc

@ -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.
QRect position = frameGeometry();
position.moveCenter(QDesktopWidget().availableGeometry().center());
position.moveCenter(QApplication::desktop()->availableGeometry().center());
move(position.topLeft());
// Add all protocols

Loading…
Cancel
Save