Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
fix(ui-mig): keep playback menus clear of control bar
Veyra Goal Agent8a1be6aaf357
diff --git a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md b/docs/UI_FULL_GOAL_PLAN_2026-09-26.mdindex 9c4a8000..c19e3d23 100644--- a/docs/UI_FULL_GOAL_PLAN_2026-09-26.md+++ b/docs/UI_FULL_GOAL_PLAN_2026-09-26.md@@ -9,6 +9,7 @@当前入口:`docs/UI_MIGRATION_RECOVERY_PLAN_2026-09-26.md`。旧 G/B 阶段保留作历史记录;在 R0/R1 通过前不得按原线性队列推进 G3.3、G3.4 或 B1-B5。+局部问题 R1.1(播放条字幕/音轨菜单遮挡)已在真实片源窗口复查;音轨菜单打开后高度变化的定位缺陷已修。证据在 `goal/r0/menu-*-after.png`,Quick Test 9/9。此项不代表 R0/R1 窗口分层总验收完成,也不代表字幕流已接入。| 阶段 | 状态 | 最后标签 | 备注 ||---|---|---|---|diff --git a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md b/docs/UI_MIGRATION_EXECUTION_2026-09-25.mdindex 1ba14f56..64705668 100644--- a/docs/UI_MIGRATION_EXECUTION_2026-09-25.md+++ b/docs/UI_MIGRATION_EXECUTION_2026-09-25.md@@ -37,6 +37,7 @@| S4.8 | 影院模式黑边与控制条修复 | 完成 | `checkpoint/ui-mig-s4.8` | `6f62e5f`(G0.1 补行) || S4.9 | `VGroup` 行重叠修复(桌面端接手第一步) | 完成(截图已看) | `checkpoint/ui-mig-s4.9-vgroup` | 最小复现定位两处原因;导出页/设置页行已正常排布 || G | 目标模式全量计划 | 进行中 | `checkpoint/ui-mig-g-plan` | 见 [`UI_FULL_GOAL_PLAN_2026-09-26.md`](UI_FULL_GOAL_PLAN_2026-09-26.md) |+| R1.1 | 播放条字幕/音轨菜单遮挡局部修复 | 完成(仅此问题) | `checkpoint/ui-mig-r1.1` | 真实视频实机截图 `goal/r0/menu-subtitle-after.png`、`menu-audio-after.png` 已看;动态菜单高度回归 Quick Test 9/9。R0/R1 总验收未完成,字幕后端未接入 || G0.2 | 17 张设计参考(无头 Edge) | 完成(逐张看图) | `checkpoint/ui-mig-g0.2` | `logs\ui-qml-migration-20260925\design-ref\`;首版对话框被截在淡入中途、与底页重叠,`shotpage.js` 默认 `setReduced(true)` 后重渲染 || G0.3 | 应用测试开关 | 完成(逐项截图已看) | `checkpoint/ui-mig-g0.3` | `--page --tab --dialog --aspect --dock-pinned --size WxH --reduced-motion --slow-animations N`;证据 `goal\g0.3\`。带片源时应用自动进极简且原生视频窗盖住 QML,对话框/dock 截图需不带片源 || G0.4 | `shoot-all.ps1`(17 屏 QML)+ `compose-compare.ps1`(左设计右 QML) | 完成(看图) | `checkpoint/ui-mig-g0.4` | QML 截图 `logs\ui-qml-migration-20260925\qml-ref\`,对比 `compare\cmp-f-*.png`。首页缺“继续上次/最近”、卡片图标为 emoji、标志偏低;专业页缺 NR 多层卡、仪表折线与分段柱、顺序条换行——列入 G1/G3 |diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 15d04acf..ec042b36 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -6689,3 +6689,10 @@ release. 5090 live acceptance, 15-second hitch and user flicker remain unresolve- 新测试开关 `--data-dir <path>`(在桥接创建前读取),审查时用 `tests/ui-qml-migration-20260925/g3-home-data`(种子历史)与 `g3-empty-data`(首次运行),不读写用户自己的数据。- 截图:cmp-f-home.png(有历史,对齐设计稿)、qml-empty.png(首次运行无继续/最近行)。PrintWindow 截图在显示器休眠时仍正常。- 未执行:卡片悬停上浮与按下缩放的实拍——显示器休眠期间 Qt Quick 不投递悬停(hover-shot 前后逐像素无差,与 G2.4 dock 同一现象);点击最近条目打开文件。++- R1.1 播放条菜单遮挡局部修复(2026-09-26,`checkpoint/ui-mig-r1.1`):+ - `CineBar.menuOpen` 覆盖字幕和音轨弹层,使独立 `FullscreenBar` 的窗口遮罩展开;三个上弹菜单设置播放条上沿边界。`VMenu` 在打开后按实际高度重定位,动态音轨项完成布局后不再压进播放条。音轨模型保留真实 `index` 用于选择。+ - 构建:`scripts/build-qt-probe.ps1 -Targets veyra_qml_ui,veyra_qml_quick_tests -Log E:\项目\Veyra\logs\ui-qml-migration-20260925\goal\r0\menu-height-build.log`,exit 0,`ninja: no work to do`(QML 由运行时加载);将 `VMenu.qml` 同步到 `tests\ui-qml-migration-20260925\qml-app-r0-final\qml\Veyra\` 后重启 `veyra_qml_ui_r0_final.exe`,以隔离 `--data-dir` 打开 `GTAVI_An_Extended_Look_4K_Native.mp4`。运行 stdout/stderr 为 `goal\r0\menu-height-stdout.log` / `menu-height-stderr.log`。+ - 实机 Windows.Graphics.Capture 已看:字幕和音轨菜单完整显示在播放条上方,图在 `goal\r0\menu-subtitle-after.png` 与 `menu-audio-after.png`。修前同一音轨菜单底部压进播放条,修后底部离播放条约 18px。+ - Qt Quick Test `veyra_qml_quick_tests.exe -input tests\qml\quick -o goal\r0\menu-height-regression-tests.txt,txt`:9 passed, 0 failed,新增动态高度增长时底边不超过 `aboveLimit` 的回归用例。+ - 未执行:多音轨真实切换、全屏/多显示器/DPI 复查、字幕流选择(后端未接入)。R0/R1 窗口分层总验收未据此宣布通过;进度条缩略图、点击跳转和拖动问题仍需单独验收。diff --git a/qml/Veyra/CineBar.qml b/qml/Veyra/CineBar.qmlindex 544965ac..c7844375 100644--- a/qml/Veyra/CineBar.qml+++ b/qml/Veyra/CineBar.qml@@ -16,8 +16,10 @@ Rectangle {signal requestLock()// Set on the fullscreen bar: shows the lock button.property bool fullscreen: false- // The preset menu is open: an owner window that hides the bar on a timer waits.- readonly property bool menuOpen: presetMenu.visible+ // Set by FullscreenBar so upward menus stop above the playback pill.+ property real menuBottomLimit: -1+ // Any popover needs the owner window's full mask, not just the preset menu.+ readonly property bool menuOpen: presetMenu.visible || ccMenu.visible || audioMenu.visible// The pointer is over the pill.readonly property bool hovered: barHover.hoveredHoverHandler { id: barHover }@@ -286,6 +288,7 @@ Rectangle {// pages-a.js presetMenu: list presets, node presets, then the way to manage them.VMenu {id: presetMenu+ aboveLimit: bar.menuBottomLimittitle: "预设"readonly property var mk: p => ({ label: p.name, note: p.note, checked: p.name === veyra.currentPresetName,tag: p.nodeMode ? "节点" : "", preset: p.index })@@ -304,6 +307,7 @@ Rectangle {// with nothing behind it. Shown disabled rather than silently doing nothing.VMenu {id: ccMenu+ aboveLimit: bar.menuBottomLimittitle: "字幕"items: [{ label: "关闭", disabled: true },@@ -320,10 +324,11 @@ Rectangle {// selected index, so the list and the check mark both come from the engine.VMenu {id: audioMenu+ aboveLimit: bar.menuBottomLimittitle: "音轨"// The bridge's label already carries language · title · codec; only the// channel count is separate.- readonly property var mk: t => ({ label: t.label,+ readonly property var mk: t => ({ label: t.label, index: t.index,note: t.channels > 0 ? (t.channels + " 声道") : "",checked: t.index === veyra.selectedAudioTrack })items: veyra.audioTracks.length > 0diff --git a/qml/Veyra/FullscreenBar.qml b/qml/Veyra/FullscreenBar.qmlindex 09cb62f8..cd660c94 100644--- a/qml/Veyra/FullscreenBar.qml+++ b/qml/Veyra/FullscreenBar.qml@@ -90,6 +90,7 @@ Window {width: win.widthheight: 92fullscreen: !win.cinema+ menuBottomLimit: win.menuRoom - 16opacity: win.fade * win.enterOpacity// barIn-like rise while showing: translate 30px -> 0 with the fade.transform: Translate { y: (win.cinema ? 0 : (1 - win.fade) * 30) + win.enterDy }diff --git a/qml/Veyra/VMenu.qml b/qml/Veyra/VMenu.qmlindex 50c3bba6..8f829ed7 100644--- a/qml/Veyra/VMenu.qml+++ b/qml/Veyra/VMenu.qml@@ -16,7 +16,11 @@ Popup {property string title: ""property var items: []property Item anchorItem: null+ property string placement: "up"property bool above: false+ // Optional local-window bottom boundary for upward menus. The fullscreen+ // cinema bar uses this to keep a popover clear of the 92px playback pill.+ property real aboveLimit: -1signal picked(int index, var item)// The design's local copy of the checked flags, so the tick moves on click@@ -24,27 +28,35 @@ Popup {property var checks: []onItemsChanged: checks = items.map(o => o.checked === true)- // place: "up" (the design's default) or "down" (selects).- function openAt(anchor, place) {- anchorItem = anchor- checks = items.map(o => o.checked === true)- const win = anchor.Window.contentItem- const r = anchor.mapToItem(win, 0, 0)- const w = Math.max(220, anchor.width)- width = w- const ph = implicitHeight- x = 0; y = 0- const pw = w- let px = Math.max(8, Math.min(r.x + anchor.width / 2 - pw / 2, win.width - pw - 8))- let py = place === "down" ? r.y + anchor.height + 8 : r.y - ph - 8- if (py < 8) py = r.y + anchor.height + 8+ function positionAtAnchor() {+ if (!anchorItem) return+ const win = anchorItem.Window.contentItem+ const r = anchorItem.mapToItem(win, 0, 0)+ const ph = height+ const pw = width+ let px = Math.max(8, Math.min(r.x + anchorItem.width / 2 - pw / 2, win.width - pw - 8))+ let py = placement === "down" ? r.y + anchorItem.height + 8 : r.y - ph - 8+ if (placement !== "down" && aboveLimit >= 0)+ py = Math.min(py, aboveLimit - ph)+ if (py < 8)+ py = placement !== "down" && aboveLimit >= 0 ? 8 : r.y + anchorItem.height + 8if (py + ph > win.height - 8) py = Math.max(8, r.y - ph - 8)above = py < r.y- originX = r.x + anchor.width / 2 - px+ originX = r.x + anchorItem.width / 2 - pxconst p = parent.mapFromItem(win, px, py)x = p.x; y = p.y+ }+ // place: "up" (the design's default) or "down" (selects).+ function openAt(anchor, place) {+ anchorItem = anchor+ placement = place+ checks = items.map(o => o.checked === true)+ width = Math.max(220, anchor.width)+ positionAtAnchor()open()+ Qt.callLater(positionAtAnchor)}+ onHeightChanged: if (visible && anchorItem) positionAtAnchor()property real originX: width / 2// For the motion probe.readonly property real motionScale: motion.sdiff --git a/tests/qml/quick/tst_components.qml b/tests/qml/quick/tst_components.qmlindex 6b7a3631..307732ee 100644--- a/tests/qml/quick/tst_components.qml+++ b/tests/qml/quick/tst_components.qml@@ -39,6 +39,12 @@ Item {title: "测试"items: [{ label: "甲", checked: true }, { sep: true }, { label: "乙" }, { label: "丙", disabled: true }]}+ VMenu {+ id: dynamicMenu+ title: "动态菜单"+ aboveLimit: 360+ items: [{ label: "甲" }]+ }SignalSpy { id: menuSpy; target: menu; signalName: "picked" }TestCase {@@ -121,6 +127,18 @@ Item {menu.close()}+ function test_menu_repositions_after_content_growth() {+ dynamicMenu.openAt(anchorItem, "up")+ tryCompare(dynamicMenu, "opened", true)+ const initialHeight = dynamicMenu.height+ dynamicMenu.items = [{ label: "甲", note: "第一项" },+ { label: "乙", note: "第二项" },+ { label: "丙", note: "第三项" }]+ tryVerify(() => dynamicMenu.height > initialHeight)+ tryVerify(() => dynamicMenu.y + dynamicMenu.height <= dynamicMenu.aboveLimit)+ dynamicMenu.close()+ }+// The option rows: Rectangles with radius 9 inside the menu's list.function findRows(item) {let out = []