aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/managementdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/theme/managementdialog.cpp')
-rw-r--r--src/modules/theme/managementdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/theme/managementdialog.cpp b/src/modules/theme/managementdialog.cpp
index 6f434b7be..0aa1a4d15 100644
--- a/src/modules/theme/managementdialog.cpp
+++ b/src/modules/theme/managementdialog.cpp
@@ -51,6 +51,7 @@
#include <QRegExp>
#include <QMessageBox>
#include <QDir>
+#include <QDesktopWidget>
#include <QStringList>
#include <QDateTime>
#include <QFileDialog>
@@ -207,8 +208,9 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
}
resize(g_rectManagementDialogGeometry.width(),
g_rectManagementDialogGeometry.height());
- move(g_rectManagementDialogGeometry.x(),
- g_rectManagementDialogGeometry.y());
+
+ QRect rect = g_pApp->desktop()->screenGeometry(g_pMainWindow);
+ move(rect.x() + ((rect.width() - g_rectManagementDialogGeometry.width())/2),rect.y() + ((rect.height() - g_rectManagementDialogGeometry.height())/2));
}
ThemeManagementDialog::~ThemeManagementDialog()