Port from QExposeEvent::region

This gets deprecated in Qt6.

See also https://codereview.qt-project.org/c/qt/qtwayland/+/349335
This commit is contained in:
David Edmundson 2021-05-14 13:42:52 +01:00
parent aba253217d
commit 815ddd3fc3

View File

@ -1197,9 +1197,7 @@ void Dialog::showEvent(QShowEvent *event)
bool Dialog::event(QEvent *event)
{
if (event->type() == QEvent::Expose) {
auto ee = static_cast<QExposeEvent *>(event);
if (!KWindowSystem::isPlatformWayland() || ee->region().isNull()) {
if (!KWindowSystem::isPlatformWayland() || !isExposed()) {
return QQuickWindow::event(event);
}