From 815ddd3fc37591bc25ebbf57714b6f021465063d Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 14 May 2021 13:42:52 +0100 Subject: [PATCH] Port from QExposeEvent::region This gets deprecated in Qt6. See also https://codereview.qt-project.org/c/qt/qtwayland/+/349335 --- src/plasmaquick/dialog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plasmaquick/dialog.cpp b/src/plasmaquick/dialog.cpp index 761821efd..d6f1471b5 100644 --- a/src/plasmaquick/dialog.cpp +++ b/src/plasmaquick/dialog.cpp @@ -1197,9 +1197,7 @@ void Dialog::showEvent(QShowEvent *event) bool Dialog::event(QEvent *event) { if (event->type() == QEvent::Expose) { - auto ee = static_cast(event); - - if (!KWindowSystem::isPlatformWayland() || ee->region().isNull()) { + if (!KWindowSystem::isPlatformWayland() || !isExposed()) { return QQuickWindow::event(event); }