qt5base-lts/tests/auto
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
..
cmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
corelib Test: tst_QFile::writeLargeDataBlock() unstable failure as XFAIL 2012-09-26 10:08:59 +02:00
dbus Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
gui Fix QScreen::orientation() not always being updated after changing the update orientation mask 2012-09-26 19:55:00 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix MinGW/gcc warning about NOMINMAX being redefined 2012-09-26 10:08:59 +02:00
opengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
other Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
printsupport QtPrintSupport: allow slight deviations from pre-defined paper sizes in tests 2012-09-26 10:08:59 +02:00
shared Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
sql Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
testlib Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
tools Test case for moc handling defines 2012-09-25 00:08:16 +02:00
widgets [QTBUG-27308][QTBUG-21534] Don't mouse-wheel-scroll QScrollBar when disabled 2012-09-26 19:06:47 +02:00
xml Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
auto.pro Test: Redo remove QSKIP from printsupport tests 2012-09-13 19:33:08 +02:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
platformquirks.h Auto tests: remove PlatformQuirks::isAutoMaximizing() 2012-09-26 10:08:59 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00