Windows: Send empty region in expose event from setVisible(false).
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>
This commit is contained in:
parent
0174c966f7
commit
fddbe8beec
@ -704,11 +704,13 @@ void QWindowsWindow::setVisible(bool visible)
|
|||||||
if (m_data.hwnd) {
|
if (m_data.hwnd) {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
show_sys();
|
show_sys();
|
||||||
|
QWindowSystemInterface::handleSynchronousExposeEvent(window(),
|
||||||
|
QRect(QPoint(), geometry().size()));
|
||||||
} else {
|
} else {
|
||||||
hide_sys();
|
hide_sys();
|
||||||
|
QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRegion());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QWindowsWindow::isVisible() const
|
bool QWindowsWindow::isVisible() const
|
||||||
|
Loading…
Reference in New Issue
Block a user