From 33c9fc538c950da2ebad2cd7bfee28d4a37fd586 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 17 Dec 2025 08:19:11 +0100 Subject: [PATCH] GUI: Fix compiliation with Qt 6.10 Gentoo's CI reported a compilation issue with Qt 6.10 [1]: the type of the first parameter of QString's arg() method is int. See https://doc.qt.io/qt-6/qstring.html#arg-3 1: https://bugs.gentoo.org/967015 --- src/gui/windows/coreview/components/value_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/windows/coreview/components/value_handlers.cpp b/src/gui/windows/coreview/components/value_handlers.cpp index 0f844e7a..c2936708 100644 --- a/src/gui/windows/coreview/components/value_handlers.cpp +++ b/src/gui/windows/coreview/components/value_handlers.cpp @@ -50,7 +50,7 @@ RegIdValue::RegIdValue(svgscene::SimpleTextItem *element, const machine::Registe , data(data) {} void RegIdValue::update() { - element->setText(QString("%1").arg(data, 2, 10, QChar('0'))); + element->setText(QString("%1").arg(int(data), 2, 10, QChar('0'))); } DebugValue::DebugValue(SimpleTextItem *element, const unsigned int &data)