diff options
author | Rafael Roquetto <rafael.roquetto.qnx@kdab.com> | 2013-01-02 20:45:41 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-05 09:47:29 (GMT) |
commit | e9693b6a39df77ab964585ecbe04cc820bd6baa2 (patch) | |
tree | c643b6200fcd293358da8beecc95b6e9f98c4d54 /src/gui | |
parent | ece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630 (diff) | |
download | Qt-e9693b6a39df77ab964585ecbe04cc820bd6baa2.zip Qt-e9693b6a39df77ab964585ecbe04cc820bd6baa2.tar.gz Qt-e9693b6a39df77ab964585ecbe04cc820bd6baa2.tar.bz2 |
Fix QWidget::showFullScreen() on QPA
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 <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_qpa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |