summaryrefslogtreecommitdiffstats
path: root/src/network/doc/snippets
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2023-11-30 17:41:37 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2023-12-05 16:28:12 +0000
commit7a9bc220c70745cd3689d51cd131efde86f078d7 (patch)
tree19b6455e415fa871a876f9e118711650120df7c5 /src/network/doc/snippets
parenta0bdd2195f24d8a7d880ba506afc16b41337218e (diff)
Android: fix and simplify the orientation change logic
Move the orientation change handling to the display manager and call it from the relevant places to repeated and scattered code for the same functionality. Bring back part of 072387edecb2269097821e35f1f232da6c657650 which checks discard a resize event that's not valid that reports not up to date layout size. If DisplayManager.DisplayListener.onDisplay() initiates the orientation change, handle it immediately if we don't expect the size to change, i.e. if the orientation is changing from portrait to inverted portrait and vise versa for landscape. Otherwise, expect the change to be initiated again shortly after from QtLayout.onSizeChanged(). Also, add improve the unit test of the orientation change, and test for the widget size after such changes to make sure QTBUG-94459 is not reached again. Fixes: QTBUG-119430 Task-number: QTBUG-115019 Task-number: QTBUG-94459 Change-Id: I5f060d91531af677ddf891f2af360d5f399e26e5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'src/network/doc/snippets')
0 files changed, 0 insertions, 0 deletions