git: 6ef9e49629e3 - main - science/openmodelica: Fix build with Qt 6.10.1.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Dec 2025 21:40:20 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6ef9e49629e327a77edcbd57828f6ba4846ddf67
commit 6ef9e49629e327a77edcbd57828f6ba4846ddf67
Author: Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-18 21:27:00 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-18 21:39:03 +0000
science/openmodelica: Fix build with Qt 6.10.1.
The QString::arg() method no longer accepts implicit conversions. [1]
[1] https://doc.qt.io/qt-6/qstring.html#arg-2
With hat: kde@
---
...ch-OMEdit_OMEditLIB_Modeling_ModelWidgetContainer.cpp | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/science/openmodelica/files/patch-OMEdit_OMEditLIB_Modeling_ModelWidgetContainer.cpp b/science/openmodelica/files/patch-OMEdit_OMEditLIB_Modeling_ModelWidgetContainer.cpp
new file mode 100644
index 000000000000..c0ec4a17af5a
--- /dev/null
+++ b/science/openmodelica/files/patch-OMEdit_OMEditLIB_Modeling_ModelWidgetContainer.cpp
@@ -0,0 +1,16 @@
+Fix build with Qt 6.10.1. The QString::arg() method no longer accepts
+implicit conversions. [1]
+
+[1] https://doc.qt.io/qt-6/qstring.html#arg-2
+
+--- OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp.orig 2025-11-24 16:18:03 UTC
++++ OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp
+@@ -3943,7 +3943,7 @@ void GraphicsView::getCoordinateSystemAndGraphics(QStr
+ }
+ // add the initial scale
+ if (mCoordinateSystem.hasInitialScale()) {
+- coOrdinateSystemList.append(QString("initialScale=%1").arg(mCoordinateSystem.getInitialScale()));
++ coOrdinateSystemList.append(QString("initialScale=%1").arg(static_cast<int>(mCoordinateSystem.getInitialScale())));
+ }
+ // add the grid
+ if (mCoordinateSystem.hasGrid()) {