feat(at-spi): add accessible names for QML interactive controls - #797
feat(at-spi): add accessible names for QML interactive controls#797MyLeeJiEun wants to merge 1 commit into
Conversation
Add Accessible.name/role for interactive QML elements (menus, menu items, buttons, switches, text input, lists, grids, scrollbars, item delegates, page indicators, view containers) and mark pure decorative backgrounds (ItemBackground, DebugBounding) as Accessible.ignored, giving dde-launchpad a stable, locale-independent AT-SPI name contract. Also correct the pre-existing "Exit fullscreen" name to PascalCase "ExitFullscreen". QML coverage rises from 2.2% to 88.2%. 为 dde-launchpad 的 QML 交互控件补全 Accessible.name/role(菜单、菜单项、 按钮、开关、文本输入、列表、网格、滚动条、item delegate、页指示器、 视图容器),并对纯装饰背景(ItemBackground、DebugBounding)设置 Accessible.ignored,建立稳定、与语言无关的 AT-SPI 名称契约;同时将既有的 "Exit fullscreen" 名称更正为 PascalCase 的 "ExitFullscreen"。 QML 覆盖率由 2.2% 提升至 88.2%。 Log: 为 dde-launchpad 补全 AT-SPI 名称支持 Influence: 提升无障碍辅助工具对启动器控件的定位能力
|
[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 |
|
Hi @MyLeeJiEun. 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 GuideAdds stable, language-independent AT-SPI accessibility metadata to QML interactive controls in dde-launchpad, introduces an expected-names regression baseline, and updates relevant copyright/REUSE metadata. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Summary
为 dde-launchpad 补全 AT-SPI 支持:为 QML 交互控件添加
Accessible.name/Accessible.role,并对纯装饰背景设置Accessible.ignored,建立稳定、与语言无关的 AT-SPI 名称契约。QML AT-SPI 名称覆盖率由 2.2% → 88.2%(67/76 交互控件已命名,≥80% 门禁阈值)。
Changes
Accessible.name,作为不随语言环境变化的稳定 AT 定位锚点(菜单项文本为qsTr,默认会随 locale 变化,故需显式英文名)。Accessible.name+Accessible.role(Pane / ToolBar / Dialog)。Accessible.ignored: true,从 AT-SPI 树中排除纯视觉元素。Exit fullscreen→ExitFullscreen(含空格会导致 AT-SPI 解析不稳定)。tests/at/spi/expected_names.yaml回归基线并在REUSE.toml声明。Scope / Notes
IconItemDelegate的 6 个实例及其内部 Button 未新增名称:该组件根Control已设Accessible.name: iconItemLabel.text(应用显示名),实例会继承该名称;对其再加静态名会覆盖正确的应用名。这是扫描器的静态误报(扫描器不追踪组件根属性继承)。ToolButton未新增名称:其text: modelData(字母本身,与语言无关)已作为 AT 名称由 Qt 默认导出,加静态名反而会覆盖字母名。expected_names.yaml含 67 个 QML 元素,作为后续质量门禁的回归基线。Quality Gate
expected_names.yaml,名称级):0 回归 ✅关联 Multica 任务:DDE-139 dde-launchpad: AT-SPI 补全
Summary by Sourcery
Expand QML accessibility metadata to provide a stable AT-SPI contract for interactive launchpad controls.
New Features:
Bug Fixes:
Enhancements:
Tests:
Chores: