From b9bb115972b0a6e6c21f2cccc6abe9b7e720bed5 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Tue, 10 Jul 2012 09:06:11 +0200 Subject: Fix showNormal() and friends for platforms with fullscreen hint Don't call show() inside of QWidget, as that might make the window fullscreen due to QStyleHints::showIsFullScreen(). This regression was introduced earlier when QWidget::show() gained support for the hint. No auto test caught the problem, as the affected platforms (EGL and QNX) are not CI-tested. Change-Id: I647c2362ac5b53ced562f1d77848552cc122fba0 Reviewed-by: Friedemann Kleint --- src/widgets/kernel/qwidget_qpa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/kernel/qwidget_qpa.cpp') diff --git a/src/widgets/kernel/qwidget_qpa.cpp b/src/widgets/kernel/qwidget_qpa.cpp index a4cbcefb83..ec6d10d0b6 100644 --- a/src/widgets/kernel/qwidget_qpa.cpp +++ b/src/widgets/kernel/qwidget_qpa.cpp @@ -656,7 +656,7 @@ void QWidget::setWindowState(Qt::WindowStates newstate) data->in_set_window_state = 0; if (needShow) - show(); + setVisible(true); if (newstate & Qt::WindowActive) activateWindow(); -- cgit v1.2.3