diff options
Diffstat (limited to 'src/modules/addon/AddonManagementDialog.cpp')
| -rw-r--r-- | src/modules/addon/AddonManagementDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/addon/AddonManagementDialog.cpp b/src/modules/addon/AddonManagementDialog.cpp index ffe9c4671..dccb34058 100644 --- a/src/modules/addon/AddonManagementDialog.cpp +++ b/src/modules/addon/AddonManagementDialog.cpp @@ -48,7 +48,7 @@ #include <QPushButton> #include <QLayout> #include <QApplication> -#include <QDesktopWidget> +#include <QScreen> #include <QLineEdit> #include <QLabel> #include <QFrame> @@ -192,7 +192,7 @@ AddonManagementDialog::AddonManagementDialog(QWidget * p) resize(g_rectManagementDialogGeometry.width(), g_rectManagementDialogGeometry.height()); - QRect rect = g_pApp->desktop()->screenGeometry(g_pMainWindow); + QRect rect = g_pMainWindow->screen()->availableGeometry(); move(rect.x() + ((rect.width() - g_rectManagementDialogGeometry.width()) / 2), rect.y() + ((rect.height() - g_rectManagementDialogGeometry.height()) / 2)); new QShortcut(Qt::Key_Escape, this, SLOT(closeClicked())); |
