fix: use QImage::flipped() for Qt6 compatibility - #409
Conversation
|
Hi @kt286. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's GuideEnsure Qt5/Qt6 compatibility by conditionally using QImage::flipped() instead of QImage::mirrored() for image flipping operations and updating copyright years. Flow diagram for Qt-version-compatible image flippingflowchart TD
A[Image flip requested] --> B{Qt version >= 6.0.0}
B -->|Yes| C[QImage.flipped]
B -->|No| D[QImage.mirrored]
C --> E[Flipped QImage]
D --> E
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Replace QImage::mirrored() with QImage::flipped() when Qt version >= 6.0.0 to ensure compatibility with Qt6 API changes. fix: 适配 Qt6 图像翻转 API 在 Qt6 中 QImage::mirrored() 已被 QImage::flipped() 替代, 添加版本检查以确保 Qt5 和 Qt6 的兼容性。
fdcaa54 to
2655d9b
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, kt286 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |

Replace QImage::mirrored() with QImage::flipped() when Qt version >= 6.0.0 to ensure compatibility with Qt6 API changes.
fix: 适配 Qt6 图像翻转 API
在 Qt6 中 QImage::mirrored() 已被 QImage::flipped() 替代, 添加版本检查以确保 Qt5 和 Qt6 的兼容性。
Summary by Sourcery
Support Qt 6 image flipping APIs while preserving compatibility with Qt 5.
Bug Fixes:
Chores: