qt5base-lts/tests/auto/gui
Simon Hausmann ce1f994e9b Fix QScreen::orientation() not always being updated after changing the update orientation mask
The back-end might report screen orientation changes at any point and we
record it in screen.d->orientation. However QScreen::orientation()
returns the orientation filtered according to the mask.

Changing the mask sends a notification to the back-end, which might send
another update as a result of a possible subscription to system services
(accelerometer). However on platforms where no subscription is required, where
the platform plugin ignores the mask and always sends the latest orientation,
we should "simulate" the update by updating the filtered orientation according
to the new mask. The function is cheap to call as it won't emit any signals
unless the orientation actually changes.

This patch also adds missing flush() calls after handleScreenOrientationChange
calls in the tests to ensure that the (synthetic) window system events are
actually delivered to QScreen/QGuiApplication.

Change-Id: Iebdd050f947e658ff5bc388629aa4cb31ab497fe
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
2012-09-26 19:55:00 +02:00
..
image Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
itemmodels Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel Fix QScreen::orientation() not always being updated after changing the update orientation mask 2012-09-26 19:55:00 +02:00
math3d Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
painting test:Remove QSKIP from tst_QPainter 2012-09-26 04:03:41 +02:00
qopengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
text Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00