Repository navigation
[6014] 在 PDF 阅读器工具栏左上角添加收起/展开目录按钮 - #4699
Merged
Merged
Conversation
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.
任务简述
对应任务文档
devel/6014.stem。在 PDF 阅读器界面左上角工具栏首位(缩放比例选择框之前)添加收起/展开目录大纲的专用按钮,交互对标 Okular 等专业现代 PDF 阅读器:
PdfToolBar左侧首位新增pdf-toggle-outline-btn(QToolButton,尺寸 32×28 dp,图标 24×24 dp);checkable: true,有目录且展开时处于选中态(高亮背景底色与微弱边框),收起或无目录时处于常规未选中态;若 PDF 完全无书签目录则自动禁用置灰。pdfOutlineDock的visibilityChanged信号,实时双向同步工具栏按钮的 checked 状态;(toggle-outline-sidebar)与 C++update_visibility()实现平滑切换。sidebar.svg与sidebar-white.svg(4px 线宽,自适应深浅双色主题);OutlineSidebar.qml顶部标题栏彻底移除多余的「×」关闭按钮,「Contents」标题清爽居中。tests/Plugins/Qt/qt_outline_widget_test.cpp覆盖按钮构建、状态 API 与信号发射测试(11 项测试通过);dev-agent仓库通过tests/mogan/python/6014.py完成端到端鼠标物理点击自动化闭环验收。