aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/ThemeManagementDialog.cpp
diff options
context:
space:
mode:
authorGravatar ctrlaltca2023-07-08 01:38:33 +0200
committerGravatar GitHub2023-07-08 01:38:33 +0200
commit28292170d8c02743cabfabba3a1623b8d71b9aa2 (patch)
tree03c7269f527a40a5b86863db7c111f2552afe46c /src/modules/theme/ThemeManagementDialog.cpp
parentMerge branch 'bugfix/script-editor-out-of-range-exception' (diff)
downloadKVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.gz
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.bz2
KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.zip
Port to (and require) Qt 5.15. Drop KDE4 support, fix KDE5 (#2541)
* Port to (and require) Qt 5.15. Drop KDE4 support, implement KDE5 support where needed. --------- Co-authored-by: Fabio Bas <fabio.bas@officineinformatiche.net>
Diffstat (limited to 'src/modules/theme/ThemeManagementDialog.cpp')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index 3b4fe8ed9..088042c25 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -54,7 +54,6 @@
#include <QRegExp>
#include <QMessageBox>
#include <QDir>
-#include <QDesktopWidget>
#include <QStringList>
#include <QDateTime>
#include <QFileDialog>
@@ -68,6 +67,7 @@
#include <QAbstractTextDocumentLayout>
#include <QShortcut>
#include <QMenu>
+#include <QScreen>
extern QRect g_rectManagementDialogGeometry;
@@ -230,7 +230,7 @@ ThemeManagementDialog::ThemeManagementDialog(QWidget * parent)
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()));