Show warning about QBackingStore::flush() only for toplevel windows.
Task-number: QTBUG-30181 Change-Id: I8c9b515af022cb204649cb1e1f344f73a224c8b7 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
parent
c2a8a8236f
commit
a87e8f7a10
@ -98,7 +98,7 @@ void QBackingStore::flush(const QRegion ®ion, QWindow *win, const QPoint &off
|
||||
if (!win)
|
||||
win = window();
|
||||
|
||||
if (win && !qt_window_private(win)->receivedExpose) {
|
||||
if (win && win->isTopLevel() && !qt_window_private(win)->receivedExpose) {
|
||||
qWarning().nospace() << "QBackingStore::flush() called with non-exposed window "
|
||||
<< win << ", behavior is undefined";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user