From ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Fri, 21 Dec 2012 14:04:46 -0200 Subject: Fix QWidget::hide() on QPA platforms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We must check within QWidgetPrivate::hide_sys() if the widget has a platform window and hide it. Fixed on Qt5 as a side effect of 09163941268745bbe231d0b2c25697940aa40127 Change-Id: Id0f5e748e69789027cbde427d37655d19a4ccab2 Reviewed-by: Sean Harmer Reviewed-by: Kevin Krammer Reviewed-by: Debao Zhang Reviewed-by: Jørgen Lind --- src/gui/kernel/qwidget_qpa.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp index 6696d2f..241261e 100644 --- a/src/gui/kernel/qwidget_qpa.cpp +++ b/src/gui/kernel/qwidget_qpa.cpp @@ -427,7 +427,6 @@ void QWidgetPrivate::hide_sys() if (p &&p->isVisible()) { invalidateBuffer(q->rect()); } - return; } if (QPlatformWindow *window = q->platformWindow()) { window->setVisible(false); -- cgit v0.12