Output window in warning about flush() for unexposed window.

Change-Id: I1dd975926c2bea7bcc10a702739836b16b656213
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
Friedemann Kleint 2013-03-01 15:15:03 +01:00 committed by The Qt Project
parent 9100a68221
commit 09fb084e3a

View File

@ -45,6 +45,7 @@
#include <qpa/qplatformbackingstore.h>
#include <qpa/qplatformintegration.h>
#include <qscreen.h>
#include <qdebug.h>
#include <private/qguiapplication_p.h>
#include <private/qwindow_p.h>
@ -97,8 +98,10 @@ void QBackingStore::flush(const QRegion &region, QWindow *win, const QPoint &off
if (!win)
win = window();
if (win && !qt_window_private(win)->receivedExpose)
qWarning("QBackingStore::flush() called with non-exposed window, behavior is undefined");
if (win && !qt_window_private(win)->receivedExpose) {
qWarning().nospace() << "QBackingStore::flush() called with non-exposed window "
<< win << ", behavior is undefined";
}
d_ptr->platformBackingStore->flush(win, region, offset);
}