Go to file
Paul Olav Tvete d8f7a2ddf4 EglFS: make sure resize events are delivered
Make sure that resize events are delivered when the platform
plugin overrides the geometry set in setGeometry().

This fixes a race condition where a widget was resized to its
sizeHint() while the window was maximized, and the content was
shown scaled on the screen.

The problem is that the widget gets the wrong size from
QWidget::setWindowState() (which calls adjustSize() in order to support
normalGeometry). This size is used to resize the backingStore. When the
QWindow is resized, it calls QEglFSWindow::setGeometry() which corrects the
size to screen()->availableGeometry(), and triggers a GeometryChangeEvent
since the size was corrected.

This ends up in QGuiApplicationPrivate::processGeometryChangeEvent() which
will not send a resize event, since the size has not changed (it is always
availableGeometry()). Therefore the widget is never resized, and the
backingStore remains the wrong size.

Task-number: QTBUG-34421
Change-Id: Iee49c53cc529de36010db2695d838d8c2284edd4
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
2013-11-06 17:47:25 +01:00
bin Merge "Merge remote-tracking branch 'origin/release' into stable" into refs/staging/stable 2013-06-15 22:39:25 +02:00
config.tests turn makeabs into a proper cleanPath() 2013-10-30 23:26:58 +01:00
dist Add note about fullscreen on Android to changes-5.2.0 2013-11-06 11:31:39 +01:00
doc Doc: update Qt Creator external pages 2013-11-06 14:21:56 +01:00
examples Doc: Fix broken links 2013-11-05 00:29:01 +01:00
lib
mkspecs Resolve Qt module deps before determining if QML import scanner is needed 2013-11-05 15:52:02 +01:00
qmake Doc: Updated url variable in qdocconf files. 2013-11-06 11:31:39 +01:00
src EglFS: make sure resize events are delivered 2013-11-06 17:47:25 +01:00
tests QMetaType: Fix conversion between module types. 2013-11-06 16:15:15 +01:00
tools CMake: Add the qreal typedef type to the Qt5::Core target. 2013-11-04 16:25:39 +01:00
util generate qfeatures.h at build time 2013-10-29 15:37:58 +01:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Long live QCommandLineParser! 2013-08-24 21:33:39 +02:00
.qmake.conf Enable -Werror for all of qtbase 2013-09-04 01:50:10 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure CMake: Add the qreal typedef type to the Qt5::Core target. 2013-11-04 16:25:39 +01:00
configure.bat get rid of syncqt wrapper scripts 2013-05-13 21:54:48 +02:00
header.BSD Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.FDL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
header.LGPL-ONLY Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
INSTALL INSTALL: Fix URL of Installing Qt documentation 2013-04-11 16:09:07 +02:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
LICENSE.PREVIEW.COMMERCIAL Update LICENSE.PREVIEW.COMMERCIAL license 2013-06-03 20:04:26 +02:00
qtbase.pro de-duplicate QT_DISABLED_FEATURES after resolving dependencies 2013-11-04 19:49:48 +01:00
sync.profile generate qfeatures.h at build time 2013-10-29 15:37:58 +01:00