diff options
| author | 2011-03-05 03:13:09 +0000 | |
|---|---|---|
| committer | 2011-03-05 03:13:09 +0000 | |
| commit | ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb (patch) | |
| tree | 2dd524c74f95787af3fdc64d57a92b7694f8bf96 /src/modules/theme/managementdialog.cpp | |
| parent | Fix #1103 (diff) | |
| download | KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.tar.gz KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.tar.bz2 KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.zip | |
Fix #1102
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5534 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/managementdialog.cpp')
| -rw-r--r-- | src/modules/theme/managementdialog.cpp | 6 |
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() |
