From e9693b6a39df77ab964585ecbe04cc820bd6baa2 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Wed, 2 Jan 2013 18:45:41 -0200 Subject: Fix QWidget::showFullScreen() on QPA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When showing full screen, we need to enforce that the size of the widget *is* the size of the screen. When calling QWidget::resize(), there was a chance for the layout to bypass the screen size, causing the toplevel widget to be clipped. This fix is not necessary on Qt5. Qt5 implements this differently and correctly. Change-Id: I1f4467dd14310ee20376caba8780507f8d787720 Reviewed-by: Samuel Rødal --- src/gui/kernel/qwidget_qpa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp index 241261e..3443c15 100644 --- a/src/gui/kernel/qwidget_qpa.cpp +++ b/src/gui/kernel/qwidget_qpa.cpp @@ -460,7 +460,7 @@ void QWidgetPrivate::setFullScreenSize_helper() const QRect screen = qApp->desktop()->screenGeometry(qApp->desktop()->screenNumber(q)); q->move(screen.topLeft()); - q->resize(screen.size()); + q->setFixedSize(screen.size()); data.in_set_window_state = old_state; } -- cgit v0.12