Fixing a crash in tst_qwidget.cpp, trying to redraw on destroying
the platform window.
Change-Id: I6b6e9a063a1c72dff8110c379f8392605aadbdd6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
if (m_data.hwnd) {
if (visible) {
show_sys();
+ QWindowSystemInterface::handleSynchronousExposeEvent(window(),
+ QRect(QPoint(), geometry().size()));
} else {
hide_sys();
+ QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRegion());
}
}
- QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size()));
}
bool QWindowsWindow::isVisible() const