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); }