From 67fec4a5f5f164a24481921eab57955ce0d607f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Thu, 22 Sep 2011 10:43:52 +0200 Subject: [PATCH] Fixed tst_QWidget::updateWhileMinimized() The QBackingStore::sync() call after the first expose when the widget is un-minimized is discarded due to Qt::WA_Mapped being false. Since there might be backing store syncs pending on Qt::WA_Mapped being set we should also call syncBackingStore() when we get the map event. Change-Id: I762545dc0522a99f0b36ce9a2cd2f45894cb40a5 Reviewed-on: http://codereview.qt-project.org/5377 Reviewed-by: Qt Sanity Bot Reviewed-by: Lars Knoll --- src/widgets/kernel/qwidgetwindow_qpa.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widgets/kernel/qwidgetwindow_qpa.cpp b/src/widgets/kernel/qwidgetwindow_qpa.cpp index 6f6018a..32878bf 100644 --- a/src/widgets/kernel/qwidgetwindow_qpa.cpp +++ b/src/widgets/kernel/qwidgetwindow_qpa.cpp @@ -110,6 +110,7 @@ bool QWidgetWindow::event(QEvent *event) case QEvent::Map: m_widget->setAttribute(Qt::WA_Mapped); + m_widget->d_func()->syncBackingStore(); return true; case QEvent::Unmap: -- 2.7.4