summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2013-01-02 20:45:41 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-05 09:47:29 (GMT)
commite9693b6a39df77ab964585ecbe04cc820bd6baa2 (patch)
treec643b6200fcd293358da8beecc95b6e9f98c4d54 /src/gui
parentece0d57613d5fdc3a5a1d1fd4c8a27b3957ea630 (diff)
downloadQt-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.cpp2
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;
}