pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

paraview: Fix for Qt6.10.1: Explicitly cast unscoped enums to int




To: pkgsrc-wip-changes%NetBSD.org@localhost

Subject: paraview: Fix for Qt6.10.1: Explicitly cast unscoped enums to int

From: Atsushi Toyokura (via pkgsrc-wip) <commit-notify%pkgsrc.org@localhost>

Date: Sun, 1 Feb 2026 07:58:24 +0000


Module Name: pkgsrc-wip
Committed By: Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By: steleto
Date:  Sun Feb 1 16:43:03 2026 +0900
Changeset: 40091aa0434e9b19f35583d315ad63a89ec2dae9

Modified Files:
 paraview/distinfo
Added Files:
 paraview/patches/patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx
 paraview/patches/patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx
 paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqAbstractItemViewEventTranslator.cxx
 paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqBasicWidgetEventTranslator.cxx

Log Message:
paraview: Fix for Qt6.10.1: Explicitly cast unscoped enums to int

commit #cd7e633d
https://gitlab.kitware.com/paraview/paraview/-/commit/cd7e633df299c29e8e76c34df83d8c67dfb386a1

commit #9ba0a210
https://gitlab.kitware.com/paraview/qttesting/-/commit/9ba0a2104840ac5ddf0b73a36d72b282bf6b03d9.patch

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=40091aa0434e9b19f35583d315ad63a89ec2dae9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 paraview/distinfo                                  |  4 +++
 ...patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx | 20 +++++++++++
 .../patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx  | 40 ++++++++++++++++++++++
 ...qttesting_pqAbstractItemViewEventTranslator.cxx | 20 +++++++++++
 ...g_vtkqttesting_pqBasicWidgetEventTranslator.cxx | 20 +++++++++++
 5 files changed, 104 insertions(+)

diffs:
diff --git a/paraview/distinfo b/paraview/distinfo
index 348024dff6..e09263bb3c 100644
--- a/paraview/distinfo
+++ b/paraview/distinfo
@@ -3,7 +3,11 @@ $NetBSD$
 BLAKE2s (ParaView-v6.0.1.tar.gz) = eb467fc08e93c67f36089f79f89fcc06a4218e1959db95a8ec21c79fadebc12a
 SHA512 (ParaView-v6.0.1.tar.gz) = 8778dbca35435758cf675299d79866a45fba4f6ff3b22896fc6a568db23622df79fe74a535967e598127e46b9371ba8da99595a64ccf21079278f7f77b7dd954
 Size (ParaView-v6.0.1.tar.gz) = 110567668 bytes
+SHA1 (patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx) = 588d18cb75306e2f62e2577b0adef946899faf4e
+SHA1 (patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx) = 4187d649c304b82abc562e32127e20bc57d029b8
 SHA1 (patch-Qt_Core_pqServerConfiguration.cxx) = 13650d27176d82f812dc92e441f42de02b070462
+SHA1 (patch-ThirdParty_QtTesting_vtkqttesting_pqAbstractItemViewEventTranslator.cxx) = 398cbbcad0c5d5f77de810a2b161b48fcd230cfd
+SHA1 (patch-ThirdParty_QtTesting_vtkqttesting_pqBasicWidgetEventTranslator.cxx) = d2a39e74ad83a078311a50998efb63292357f220
 SHA1 (patch-VTK_ThirdParty_ioss_vtkioss_Ioss__FileInfo.C) = 529d4056ead53c17ce7b0e71c5d5d6dd12cfc0b1
 SHA1 (patch-VTK_ThirdParty_loguru_vtkloguru_loguru.cpp) = 2827711be67aa8210fdb169dd5b6c49a7ed97174
 SHA1 (patch-VTK_ThirdParty_viskores_vtkviskores_viskores_viskores_thirdparty_loguru_viskoresloguru_loguru.cpp) = 4d59b97920388184cfcbe9d3a38c45ff939da27e
diff --git a/paraview/patches/patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx b/paraview/patches/patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx
new file mode 100644
index 0000000000..fd3d9d9a7a
--- /dev/null
+++ b/paraview/patches/patch-Qt_Core_pqFlatTreeViewEventTranslator.cxx
@@ -0,0 +1,20 @@
+$NetBSD$
+
+commit #cd7e633d
+Fix for Qt6.10.1: Explicitly cast unscoped enums to int 
+
+https://gitlab.kitware.com/paraview/paraview/-/commit/cd7e633df299c29e8e76c34df83d8c67dfb386a1
+
+--- Qt/Core/pqFlatTreeViewEventTranslator.cxx.orig 2026-01-26 16:06:53.762654764 +0000
++++ Qt/Core/pqFlatTreeViewEventTranslator.cxx
+@@ -73,8 +73,8 @@ bool pqFlatTreeViewEventTranslator::tran
+ 
+       QString info = QString("%1,%2,%3,%4,%5,%6")
+                        .arg(mouseEvent->button())
+-                       .arg(mouseEvent->buttons())
+-                       .arg(mouseEvent->modifiers())
++                       .arg(static_cast<int>(mouseEvent->buttons()))
++                       .arg(static_cast<int>(mouseEvent->modifiers()))
+                        .arg(relPt.x())
+                        .arg(relPt.y())
+                        .arg(idxStr);
diff --git a/paraview/patches/patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx b/paraview/patches/patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx
new file mode 100644
index 0000000000..18491ad6c3
--- /dev/null
+++ b/paraview/patches/patch-Qt_Core_pqQVTKWidgetEventTranslator.cxx
@@ -0,0 +1,40 @@
+$NetBSD$
+
+commit #cd7e633d
+Fix for Qt6.10.1: Explicitly cast unscoped enums to int 
+
+https://gitlab.kitware.com/paraview/paraview/-/commit/cd7e633df299c29e8e76c34df83d8c67dfb386a1
+
+--- Qt/Core/pqQVTKWidgetEventTranslator.cxx.orig 2026-01-26 16:07:36.121167406 +0000
++++ Qt/Core/pqQVTKWidgetEventTranslator.cxx
+@@ -90,8 +90,8 @@ bool pqQVTKWidgetEventTranslator::transl
+               .arg(normalized_x)
+               .arg(normalized_y)
+               .arg(mouseEvent->button())
+-              .arg(mouseEvent->buttons())
+-              .arg(mouseEvent->modifiers()));
++              .arg(static_cast<int>(mouseEvent->buttons())
++              .arg(static_cast<int>(mouseEvent->modifiers())));
+         }
+         return true;
+         break;
+@@ -118,15 +118,15 @@ bool pqQVTKWidgetEventTranslator::transl
+               .arg(normalized_x)
+               .arg(normalized_y)
+               .arg(mouseEvent->button())
+-              .arg(mouseEvent->buttons())
+-              .arg(mouseEvent->modifiers()));
++              .arg(static_cast<int>(mouseEvent->buttons()))
++              .arg(static_cast<int>(mouseEvent->modifiers())));
+           Q_EMIT recordEvent(widget, "mouseRelease",
+             QString("(%1,%2,%3,%4,%5)")
+               .arg(normalized_x)
+               .arg(normalized_y)
+               .arg(mouseEvent->button())
+-              .arg(mouseEvent->buttons())
+-              .arg(mouseEvent->modifiers()));
++              .arg(static_cast<int>(mouseEvent->buttons()))
++              .arg(static_cast<int>(mouseEvent->modifiers())));
+         }
+         return true;
+         break;
diff --git a/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqAbstractItemViewEventTranslator.cxx b/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqAbstractItemViewEventTranslator.cxx
new file mode 100644
index 0000000000..d3400c97a3
--- /dev/null
+++ b/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqAbstractItemViewEventTranslator.cxx
@@ -0,0 +1,20 @@
+$NetBSD$
+
+commit #9ba0a210
+Fix for Qt6.10.1: Explicitly cast unscoped enums to int
+
+https://gitlab.kitware.com/paraview/qttesting/-/commit/9ba0a2104840ac5ddf0b73a36d72b282bf6b03d9.patch
+
+--- ThirdParty/QtTesting/vtkqttesting/pqAbstractItemViewEventTranslator.cxx.orig 2026-01-26 14:22:05.462417636 +0000
++++ ThirdParty/QtTesting/vtkqttesting/pqAbstractItemViewEventTranslator.cxx
+@@ -90,8 +90,8 @@ bool pqAbstractItemViewEventTranslator::
+ 
+       QString info = QString("%1,%2,%3,%4,%5,%6")
+                        .arg(mouseEvent->button())
+-                       .arg(mouseEvent->buttons())
+-                       .arg(mouseEvent->modifiers())
++                       .arg(static_cast<int>(mouseEvent->buttons()))
++                       .arg(static_cast<int>(mouseEvent->modifiers()))
+                        .arg(relPt.x())
+                        .arg(relPt.y())
+                        .arg(idxStr);
diff --git a/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqBasicWidgetEventTranslator.cxx b/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqBasicWidgetEventTranslator.cxx
new file mode 100644
index 0000000000..cc43725682
--- /dev/null
+++ b/paraview/patches/patch-ThirdParty_QtTesting_vtkqttesting_pqBasicWidgetEventTranslator.cxx
@@ -0,0 +1,20 @@
+$NetBSD$
+
+commit #9ba0a210
+Fix for Qt6.10.1: Explicitly cast unscoped enums to int
+
+https://gitlab.kitware.com/paraview/qttesting/-/commit/9ba0a2104840ac5ddf0b73a36d72b282bf6b03d9.patch
+
+--- ThirdParty/QtTesting/vtkqttesting/pqBasicWidgetEventTranslator.cxx.orig 2026-01-26 14:23:41.194197107 +0000
++++ ThirdParty/QtTesting/vtkqttesting/pqBasicWidgetEventTranslator.cxx
+@@ -53,8 +53,8 @@ bool pqBasicWidgetEventTranslator::trans
+ #endif
+         QString info = QString("%1,%2,%3,%4,%5")
+                          .arg(mouseEvent->button())
+-                         .arg(mouseEvent->buttons())
+-                         .arg(mouseEvent->modifiers())
++                         .arg(static_cast<int>(mouseEvent->buttons()))
++                         .arg(static_cast<int>(mouseEvent->modifiers()))
+                          .arg(pos.x())
+                          .arg(pos.y());
+ 




Prev by Date: wip/urlwatch: update to urlwatch-2.29

Next by Date: elmerfem: Update to 26.1

Previous by Thread: wip/urlwatch: update to urlwatch-2.29

Next by Thread: elmerfem: Update to 26.1

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index