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:
Friedemann Kleint 2013-03-21 09:00:00 +01:00 committed by The Qt Project
parent c2a8a8236f
commit a87e8f7a10

View File

@ -98,7 +98,7 @@ void QBackingStore::flush(const QRegion &region, 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";
}