audio/musescore: Fix build with Qt 6.9

With hat:	kde@
PR:		286051
This commit is contained in:
Jason E. Hale 2025-04-26 22:50:22 -04:00
parent 532a3777f9
commit e08d7fba8f
3 changed files with 23 additions and 0 deletions

View file

@ -3,6 +3,9 @@ DISTVERSIONPREFIX= v
DISTVERSION= 4.5.1
CATEGORIES= audio
PATCH_SITES= https://github.com/musescore/MuseScore/commit/
PATCHFILES+= 05056ed19520060c3912a09a3adfa0927057f956.patch:-p1 # Fix build with Qt >= 6.9.0
MAINTAINER= adridg@FreeBSD.org
COMMENT= Free music composition & notation software
WWW= https://musescore.org/ \

View file

@ -1,3 +1,5 @@
TIMESTAMP = 1743123988
SHA256 (musescore-MuseScore-v4.5.1-v4.5_GH0.tar.gz) = 13807e7970bb7506d1e06ce32798b020609409c96f4f0b9ff3b41ced596e74fd
SIZE (musescore-MuseScore-v4.5.1-v4.5_GH0.tar.gz) = 144425720
SHA256 (05056ed19520060c3912a09a3adfa0927057f956.patch) = 8f8b1d947562ccb78875c00f50ece2ba32cb2ff38ef9da6350fc1eae4eac734a
SIZE (05056ed19520060c3912a09a3adfa0927057f956.patch) = 3471

View file

@ -0,0 +1,18 @@
Fix build with Qt >= 6.9.0
/wrkdirs/usr/ports/audio/musescore/work/MuseScore-4.5/src/palette/view/widgets/specialcharactersdialog.cpp:715:55:
error: no matching member function for call to 'arg'
715 | m_pUnicode->appendElement(fs, QString("0x%1").arg(code, 5, 16, QChar('0')));
| ~~~~~~~~~~~~~~~~^~~
--- src/palette/view/widgets/specialcharactersdialog.cpp.orig 2025-03-13 18:44:57 UTC
+++ src/palette/view/widgets/specialcharactersdialog.cpp
@@ -712,7 +712,7 @@ void SpecialCharactersDialog::populateUnicode()
std::shared_ptr<FSymbol> fs = std::make_shared<FSymbol>(gpaletteScore->dummy());
fs->setCode(code);
fs->setFont(m_font);
- m_pUnicode->appendElement(fs, QString("0x%1").arg(code, 5, 16, QLatin1Char('0')));
+ m_pUnicode->appendElement(fs, QString("0x%1").arg(static_cast<quint32>(code), 5, 16, QLatin1Char('0')));
}
}