Commit Graph

2 Commits

Author SHA1 Message Date
Lucie Gérard 9c5fc88388 Correct license for test files
According to QUIP-18 [1], all test files should be
LicenseRef-Qt-Commercial OR GPL-3.0-only

[1]: https://contribute.qt-project.org/quips/18

Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I26d72e8de04d4c7c57b3b7838af5d033265de5ba
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-02-27 10:32:21 +01:00
Volker Hilsheimer d0fcada55f Popup: keep popup and overlay centered for all orientations
Amends f1e139b9ac, which made the overlay
rotate based on the window's contentOrientation. This is wrong, setting
the contentOrientation is a hint to the window mangager, and shouldn't
rotate anything. Fix the test to verify that the popup, overlay, and
dimmer item stay centered within the content item.

The overlay already follows the rotation of the contentItem, and apps
can rotate the contentItem based on the delta between the screen's and
the content's orientation.

Add a manual test that shows the screen vs content orientation, allows
the content orientation to be set, and allows manual rotation of the
entire content with left/right arrow keys.

[ChangeLog][Qt Quick][Window] Changing the contentOrientation of the
window no longer repositions the overlay and popup items. They now
stay centered over the window's contentItem. To rotate the entire UI
in a window, set the rotation property of the contentItem.

Fixes: QTBUG-115536
Task-number: QTBUG-80910
Task-number: QTBUG-71117
Change-Id: I044fc5acf407cea8e5bdb597d43371de47f974c1
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-11-24 23:33:41 +01:00