Repository navigation
Revert "fix(a11y): fix Accessible.id crash and compile warning" - #1787
MyLeeJiEun wants to merge 1 commit into
Conversation
This reverts commit 72b624a, except for the m_ActiveId int -> uint change, which is kept to avoid the sign-compare error under -Werror. The Accessible.id workaround is no longer needed: the Qt fix removing REVISION(6, 8) from Accessible.id has already landed in the integration environment, so the static Accessible.id bindings work again. https://github.com/deepin-community/qt6-declarative/pull/37/changes#diff-93467241211d3f9d253fb8ad341738fbda5e5d3ade4721326f2bba82525fbaee
Reviewer's GuideThis PR reverts the Accessible.id crash workaround across dock and notification QML by moving IDs back from Component.onCompleted assignments to declarative bindings, relying on the integrated Qt fix for static Accessible.id support; it also preserves the unsigned m_ActiveId warning fix and restores the prior header copyright year. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MyLeeJiEun 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 |
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: ['建议将 windowmanager.h 版权年份的修改与 Accessible.id 回退逻辑分开提交,以提高提交的内聚性'] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例当前代码已是正确的声明式写法,无需修复。示例:
// 推荐的声明式写法(本次回退后的结果) ListView {
Accessible.id: "ListView"
id: listView
anchors.fill: parent
}
// 而非之前的命令式 workaround // ListView { // Component.onCompleted: { Accessible.id = "ListView" } // id: listView // anchors.fill: parent // }本报告由 AI 代码审查工具自动生成 |
This reverts commit 72b624a, except for the m_ActiveId int -> uint change, which is kept to avoid the sign-compare error under -Werror.
The Accessible.id workaround is no longer needed: the Qt fix removing REVISION(6, 8) from Accessible.id has already landed in the integration environment, so the static Accessible.id bindings work again. https://github.com/deepin-community/qt6-declarative/pull/37/changes#diff-93467241211d3f9d253fb8ad341738fbda5e5d3ade4721326f2bba82525fbaee
Summary by Sourcery
Restore static accessibility ID assignments throughout the dock and notification interfaces while preserving the compiler-warning fix.
Bug Fixes:
Enhancements:
Chores: