Repository navigation
Conversation
1. Add setAccessibleName("FontComboBox") for the font combo box in
Settings::createFontComBoBoxHandle.
2. Add setAccessibleName("ShortCutLineEdit") for the key sequence edit
in Settings::createKeySequenceEditHandle.
3. Add setAccessibleName("EncodeMenu") for the encoding DMenu in
DDropdownMenu::createEncodeMenu.
4. Add setAccessibleName("EncodeGroupMenu") for encoding group QMenu
in DDropdownMenu::createEncodeMenu.
fix: 补全缺失的 AT-SPI 无障碍名称
1. 为 Settings::createFontComBoBoxHandle 中的字体下拉框添加
setAccessibleName("FontComboBox")。
2. 为 Settings::createKeySequenceEditHandle 中的快捷键编辑框添加
setAccessibleName("ShortCutLineEdit")。
3. 为 DDropdownMenu::createEncodeMenu 中的编码菜单添加
setAccessibleName("EncodeMenu")。
4. 为 DDropdownMenu::createEncodeMenu 中的编码分组菜单添加
setAccessibleName("EncodeGroupMenu")。
Log: 补全 deepin-editor 交互控件的 AT-SPI 无障碍名称,覆盖率从 92% 提升至 100%
Influence:
1. 验证设置页字体下拉框可通过 AT-SPI 名称定位。
2. 验证快捷键编辑框可通过 AT-SPI 名称定位。
3. 验证编码菜单及编码分组菜单可通过 AT-SPI 名称定位。
4. 本地编译验证通过,覆盖率扫描达 100%。
PMS:
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: re2zero 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 |
Reviewer's GuideUIAdd accessible names to the font combo box and shortcut editor created by the settings handlers.
Add accessible names to the encoding menu and its group menus.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
补全 deepin-editor 中缺失的 AT-SPI 无障碍名称(AccessibleName),将覆盖率从 92% 提升至 100%。
Changes
src/common/settings.cpp:292FontComboBoxSettings::createFontComBoBoxHandlesrc/common/settings.cpp:358ShortCutLineEditSettings::createKeySequenceEditHandlesrc/widgets/ddropdownmenu.cpp:370EncodeMenuDDropdownMenu::createEncodeMenusrc/widgets/ddropdownmenu.cpp:377EncodeGroupMenuDDropdownMenu::createEncodeMenuCoverage
Verification
cmake --build build -j$(nproc))Scan Commit
d9eeae03044ad968Summary by Sourcery
Enhancements: