From 09fb084e3a16ea3cbca896e270ff7d9bd6b6c313 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 1 Mar 2013 15:15:03 +0100 Subject: Output window in warning about flush() for unexposed window. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1dd975926c2bea7bcc10a702739836b16b656213 Reviewed-by: Samuel Rødal --- src/gui/painting/qbackingstore.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/painting/qbackingstore.cpp') diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 1bf0b33047..fb47e62d11 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -97,8 +98,10 @@ void QBackingStore::flush(const QRegion ®ion, 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); } -- cgit v1.2.3