aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/tip
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/tip
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/tip')
-rw-r--r--src/modules/tip/libkvitip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/tip/libkvitip.cpp b/src/modules/tip/libkvitip.cpp
index f913ca14d..0735d8fd3 100644
--- a/src/modules/tip/libkvitip.cpp
+++ b/src/modules/tip/libkvitip.cpp
@@ -34,8 +34,8 @@
#include <QPushButton>
#include <QFont>
#include <QPainter>
-#include <QDesktopWidget>
#include <QCloseEvent>
+#include <QScreen>
TipWindow * g_pTipWindow = nullptr;
@@ -115,7 +115,7 @@ TipWindow::~TipWindow()
void TipWindow::showEvent(QShowEvent *)
{
- QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen());
+ QRect rect = g_pApp->primaryScreen()->availableGeometry();
move((rect.width() - width()) / 2, (rect.height() - height()) / 2);
}