Skip to content

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++

Hover tips show over the picture; list-mode NR master switch

Veyra Goal Agent5a83fcd52fbc
diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cpp
index 89a6a8a5..08a0587f 100644
--- a/apps/veyra-qml/main.cpp
+++ b/apps/veyra-qml/main.cpp
@@ -210,7 +210,13 @@ void collectCovers(QQuickItem* item, QList<Cover>& out) {
// A cover is named "videoCover" or carries videoCover: true; the property lets a
// dialog keep its own objectName for tests (an overridden name used to drop
// the hole, leaving five dialogs behind the picture).
- if (item->objectName() == QLatin1String("videoCover") || item->property("videoCover").toBool()) {
+ // Hover tips are Controls ToolTips: their popup item sits in the window overlay and
+ // its QObject parent is the ToolTip. Every tip is a cover, so a tip over the
+ // picture is no longer hidden behind it (field report 2026-10-02).
+ // Only the popup's own item: its background and text are QObject children of the
+ // ToolTip too, and would only add the same hole again.
+ const bool toolTip = item->inherits("QQuickPopupItem") && item->parent() && item->parent()->inherits("QQuickToolTip");
+ if (toolTip || item->objectName() == QLatin1String("videoCover") || item->property("videoCover").toBool()) {
// Scale is folded into the scene rect; the corner radius scales with it.
const QRectF r = item->mapRectToScene(QRectF(0, 0, item->width(), item->height()));
const qreal s = item->width() > 0 ? r.width() / item->width() : 1.0;
diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.h
index 09be5013..9667c9ef 100644
--- a/include/veyra/ui/QmlPlayerBridge.h
+++ b/include/veyra/ui/QmlPlayerBridge.h
@@ -241,6 +241,8 @@ class QmlPlayerBridge : public QObject {
Q_PROPERTY(bool nrEnabled READ nrEnabled WRITE setNrEnabled NOTIFY settingsChanged)
Q_PROPERTY(int selectedNrLayer READ selectedNrLayer WRITE setSelectedNrLayer NOTIFY settingsChanged)
Q_PROPERTY(QVariantList nrLayers READ nrLayers NOTIFY chainChanged)
+ // List mode's NR master switch: true while any NR layer is on.
+ Q_PROPERTY(bool nrAnyEnabled READ nrAnyEnabled NOTIFY chainChanged)
Q_PROPERTY(bool srEnabled READ srEnabled WRITE setSrEnabled NOTIFY settingsChanged)
Q_PROPERTY(int fgMultiplier READ fgMultiplier WRITE setFgMultiplier NOTIFY settingsChanged)
Q_PROPERTY(bool lowLatency READ lowLatency WRITE setLowLatency NOTIFY settingsChanged)
@@ -955,6 +957,9 @@ public:
Q_INVOKABLE bool removeEffect(int index);
Q_INVOKABLE bool moveEffect(int from, int to);
Q_INVOKABLE bool setEffectEnabled(int index, bool enabled);
+ // Every NR layer off at once; on again restores the layers that were on.
+ Q_INVOKABLE bool setAllNrEnabled(bool enabled);
+ bool nrAnyEnabled() const;
// Node-mode positions are UI state and persist with the chain.
Q_INVOKABLE bool setEffectPosition(int index, double x, double y);
Q_INVOKABLE QVariantMap effectDescriptor(const QString& type) const;
diff --git a/qml/Veyra/FullscreenBar.qml b/qml/Veyra/FullscreenBar.qml
index 287b2440..6aec96be 100644
--- a/qml/Veyra/FullscreenBar.qml
+++ b/qml/Veyra/FullscreenBar.qml
@@ -67,8 +67,13 @@ Window {
// The seek preview rises above the pill, so its window region must include it.
// With the menu open, the whole window takes input to allow outside-click close.
+ // The pill's hover tips open above its buttons; while the pointer is on the pill
+ // a band above it stays in the region, or the mask would cut the tip off and the
+ // picture would show through it (field report 2026-10-02).
+ readonly property int tipRoom: 56
readonly property rect hitRect: menuOpen ? Qt.rect(0, 0, width, height)
: bar.seekPreviewOpen ? Qt.rect(0, menuRoom - 122, width, 214)
+ : bar.hovered ? Qt.rect(0, menuRoom - tipRoom, width, 92 + tipRoom)
: Qt.rect(0, menuRoom, width, 92)
onHitRectChanged: veyra.setWindowMask(win, hitRect)
Component.onCompleted: veyra.setWindowMask(win, hitRect)
diff --git a/qml/Veyra/ProPage.qml b/qml/Veyra/ProPage.qml
index 342f16a8..866043fd 100644
--- a/qml/Veyra/ProPage.qml
+++ b/qml/Veyra/ProPage.qml
@@ -1211,7 +1211,13 @@ VPage {
hue: Theme.accent
title: "NR 画面增强"
summary: veyra.nrLayers.length > 0 ? veyra.nrLayers.length + " 层依次处理 · 每层参数独立" : "未添加 NR 层"
- enabledSwitch: false
+ // Master switch (field request 2026-10-02): every layer off
+ // at once; on again brings back the layers that were on.
+ enabledSwitch: veyra.nrLayers.length > 0
+ switchObjectName: "list-nr-master"
+ on: veyra.nrAnyEnabled
+ bypassed: veyra.nrLayers.length > 0 && !veyra.nrAnyEnabled
+ onToggled: on => veyra.setAllNrEnabled(on)
open: true
headerActions: [
VTag { text: "实验"; kind: "exp" },
diff --git a/scripts/ui-check/nr-master-switch.qml b/scripts/ui-check/nr-master-switch.qml
new file mode 100644
index 00000000..1aeee20f
--- /dev/null
+++ b/scripts/ui-check/nr-master-switch.qml
@@ -0,0 +1,39 @@
+ // ---- list-mode NR master switch: all layers off at once, back to what was on ----
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 1000; running: true; repeat: true
+ property int ticks: 0
+ property string failure: ""
+ function states() { return veyra.nrLayers.map(l => l.enabled ? 1 : 0).join("") }
+ function expect(what, want) {
+ const got = states()
+ veyra.logUi("uitest", "UITEST_NOTE " + what + " layers=" + got + " any=" + veyra.nrAnyEnabled)
+ if (got !== want && !failure) failure = what + " got " + got + " want " + want
+ }
+ onTriggered: {
+ ++ticks
+ if (ticks === 2) veyra.openUrl("@VIDEO@")
+ if (ticks === 5) {
+ root.goPage("pro")
+ while (veyra.nrLayers.length < 3) veyra.addEffect("nr")
+ const l = veyra.nrLayers
+ veyra.setEffectEnabled(l[0].index, true); veyra.setEffectEnabled(l[1].index, false); veyra.setEffectEnabled(l[2].index, true)
+ expect("start", "101")
+ }
+ if (ticks === 7) veyra.logUi("uitest", "UITEST_SHOT on")
+ if (ticks === 8) { veyra.setAllNrEnabled(false); expect("master off", "000") }
+ if (ticks === 10) veyra.logUi("uitest", "UITEST_SHOT off")
+ if (ticks === 11) { veyra.setAllNrEnabled(true); expect("master on restores", "101") }
+ if (ticks === 12) {
+ veyra.setAllNrEnabled(false); veyra.setEffectEnabled(veyra.nrLayers[1].index, true)
+ // A layer switched on by hand while the master was off: master shows on.
+ expect("one by hand", "010")
+ veyra.setAllNrEnabled(false); veyra.setAllNrEnabled(true); expect("restore after hand edit", "010")
+ }
+ if (ticks === 13) {
+ veyra.setAllNrEnabled(false); veyra.addEffect("nr")
+ veyra.setAllNrEnabled(true); expect("layer added while off: all on", "1111")
+ }
+ if (ticks === 14) { veyra.logUi("uitest", failure ? "UITEST_FAIL " + failure : "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/tooltip-over-video.qml b/scripts/ui-check/tooltip-over-video.qml
new file mode 100644
index 00000000..54d22117
--- /dev/null
+++ b/scripts/ui-check/tooltip-over-video.qml
@@ -0,0 +1,34 @@
+ // ---- hover tips over the picture: pro page bar (main window) and the 极简 pill window ----
+ function uitestFind(item, name) {
+ if (!item) return null
+ if (item.objectName === name) return item
+ const kids = item.children || []
+ for (let k = 0; k < kids.length; ++k) { const f = uitestFind(kids[k], name); if (f) return f }
+ return null
+ }
+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }
+ Timer {
+ interval: 1000; running: true; repeat: true
+ property int ticks: 0
+ onTriggered: {
+ ++ticks
+ if (ticks === 2) veyra.openUrl("@VIDEO@")
+ if (ticks === 6) root.goPage("pro")
+ if (ticks === 8) {
+ const b = uitestFind(root.contentItem, "pro-fullscreen")
+ if (!b) { veyra.logUi("uitest", "UITEST_FAIL no fullscreen button"); running = false; return }
+ const p = b.mapToGlobal(b.width / 2, b.height / 2)
+ veyra.logUi("uitest", "UITEST_HOVER " + p.x + " " + p.y)
+ }
+ if (ticks === 10) veyra.logUi("uitest", "UITEST_SHOT pro-tip")
+ if (ticks === 11) root.goPage("min")
+ if (ticks === 14) {
+ const b = uitestFind(fullBar.contentItem, "cine-load")
+ if (!b) { veyra.logUi("uitest", "UITEST_FAIL no load button"); running = false; return }
+ const p = b.mapToGlobal(b.width / 2, b.height / 2)
+ veyra.logUi("uitest", "UITEST_HOVER " + p.x + " " + p.y)
+ }
+ if (ticks === 16) { veyra.logUi("uitest", "UITEST_NOTE pill hovered=" + fullBar.hovered + " hit=" + fullBar.hitRect); veyra.logUi("uitest", "UITEST_SHOT pill-tip") }
+ if (ticks === 17) { veyra.logUi("uitest", "UITEST_DONE"); running = false }
+ }
+ }
diff --git a/scripts/ui-check/ui-check.py b/scripts/ui-check/ui-check.py
index b79701a0..a170845f 100644
--- a/scripts/ui-check/ui-check.py
+++ b/scripts/ui-check/ui-check.py
@@ -11,6 +11,7 @@ through log lines:
UITEST_DCLICK <x> <y> a left double-click at screen coordinates
UITEST_DRAG <x0> <y0> <x1> <y1> a left-button drag at screen coordinates
UITEST_KEY <vk> [count] key presses (Windows virtual-key code) to the focused window
+ UITEST_HOVER <x> <y> park the pointer at screen coordinates (app raised; the next SHOT lowers it)
UITEST_DONE / UITEST_FAIL <why> the verdict
The log is flushed by the next log call, so the snippet keeps a heartbeat going.
Clicks and drags move the real pointer for about a second.
@@ -174,6 +175,11 @@ try:
click(x, y)
finally:
raise_app(proc.pid, False)
+ elif 'UITEST_HOVER ' in line:
+ x, y = (float(v) for v in line.split('UITEST_HOVER ')[1].split()[:2])
+ raise_app(proc.pid, True)
+ time.sleep(0.2)
+ move(x, y)
elif 'UITEST_DRAG ' in line:
x0, y0, x1, y1 = (float(v) for v in line.split('UITEST_DRAG ')[1].split()[:4])
raise_app(proc.pid, True)
diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cpp
index fc14e966..67c76bb7 100644
--- a/src/ui/QmlPlayerBridge.cpp
+++ b/src/ui/QmlPlayerBridge.cpp
@@ -123,6 +123,8 @@ bool exportFileClosed(const QString& path){
} // namespace
struct QmlPlayerBridge::Impl {
+ // Per-layer on/off before the NR master switch turned them all off.
+ std::vector<bool> nrMasterRestore;
engine::EngineController& engine;
PlayerUiFacade facade;
@@ -4825,6 +4827,35 @@ bool QmlPlayerBridge::setEffectEnabled(int index, bool enabled) {
return true;
}
+bool QmlPlayerBridge::nrAnyEnabled() const {
+ const auto& c=impl_->chain;
+ for(uint32_t i=0;i<c.nodeCount;++i)if(c.nodes[i].type==engine::EffectType::NrEnhance&&c.nodes[i].enabled)return true;
+ return false;
+}
+bool QmlPlayerBridge::setAllNrEnabled(bool enabled) {
+ auto& c=impl_->chain;const auto before=c;
+ std::vector<uint32_t> layers;
+ for(uint32_t i=0;i<c.nodeCount;++i)if(c.nodes[i].type==engine::EffectType::NrEnhance)layers.push_back(i);
+ if(layers.empty())return false;
+ auto& restore=impl_->nrMasterRestore;
+ if(!enabled){
+ restore.clear();
+ for(const auto i:layers){restore.push_back(c.nodes[i].enabled);c.nodes[i].enabled=false;}
+ }else{
+ // Layers added or removed since the switch went off: no faithful restore,
+ // so every layer comes back on. Same when nothing was on to begin with.
+ const bool faithful=restore.size()==layers.size()&&std::find(restore.begin(),restore.end(),true)!=restore.end();
+ for(size_t k=0;k<layers.size();++k)c.nodes[layers[k]].enabled=faithful?bool(restore[k]):true;
+ }
+ if(!impl_->revalidate(true)){
+ const auto error=impl_->validation.message;c=before;impl_->revalidate();
+ emit notice(utf8Of(error),true);emit chainChanged();return false;
+ }
+ veyra::log::info("ui-nr",std::format("master switch {} layers={}",enabled?"on":"off",layers.size()));
+ emit chainChanged();emit settingsChanged();
+ return true;
+}
+
QVariantMap QmlPlayerBridge::nodeAnchors() const { return impl_->anchors; }
bool QmlPlayerBridge::setNodeAnchor(const QString& key, double x, double y) {
if ((key != QLatin1String("input") && key != QLatin1String("flow") && key != QLatin1String("output")) ||
diff --git a/tests/qml/quick/tst_export.qml b/tests/qml/quick/tst_export.qml
index 36379b3e..9290c219 100644
--- a/tests/qml/quick/tst_export.qml
+++ b/tests/qml/quick/tst_export.qml
@@ -64,7 +64,9 @@ Rectangle {
function togglePlayPause(){}
function setExportTrackPolicy(audio,policy){}
}
- ExportPage { id: page; property var veyra: backend; pageId: "exp"; visible: true; enabled: true }
+ // VPage takes its parent and size from Main.qml's page stack (home) and only joins
+ // the scene while it is the shown page; the fixture places it directly instead.
+ ExportPage { id: page; property var veyra: backend; pageId: "exp"; parent: fixture; width: fixture.width; height: fixture.height; visible: true; enabled: true }
TestCase {
name: "ExportPage"
when: windowShown