media-sound/sonic-visualiser: Fix build w/ Qt 6.10.1

Closes: https://bugs.gentoo.org/966627
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-12-15 23:04:37 +01:00
parent de88a7dda6
commit eea7b1dc33
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From d5dccf33e3431bbe48731cd168cf2fb25c8ace32 Mon Sep 17 00:00:00 2001
From: Chris Cannam <cannam@all-day-breakfast.com>
Date: Sun, 7 Dec 2025 16:08:54 +0000
Subject: [PATCH] Fix compile error in debug code with new Qt
---
svgui/view/Pane.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/svgui/view/Pane.cpp b/svgui/view/Pane.cpp
index fb802c4..8d4c229 100644
--- a/svgui/view/Pane.cpp
+++ b/svgui/view/Pane.cpp
@@ -1423,7 +1423,7 @@ modifierNames(Qt::KeyboardModifiers m)
if (m & Qt::GroupSwitchModifier) s << "GroupSwitch";
m &= (~ (Qt::ShiftModifier | Qt::ControlModifier | Qt::AltModifier |
Qt::MetaModifier | Qt::KeypadModifier | Qt::GroupSwitchModifier));
- if (m) s << QString(" (residue %1)").arg(m);
+ if (m) s << QString(" (residue %1)").arg((uint64_t)m);
if (s.empty()) return "(none)";
else return s.join(" | ");
}

View File

@@ -61,6 +61,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}/${P}-meson.build.patch" # downstream
"${FILESDIR}/${P}-qt-6.9.patch" # bug #966627, svcore git master
"${FILESDIR}/${P}-qt-6.10.1.patch" # bug #966627, svgui git master
)
src_configure() {