From ba76b75a974c72e77770edd9c52b058eac90b117 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Mon, 27 Apr 2020 08:42:29 +0200
Subject: [PATCH] replaced pyuic4 call with pyuic5 (QT5 related)

This code in cmake is currently not being used by any common build
we're using. I did therefore not test the changes but added a
comment to use that functionality with care.
---
 cmake_support/OST.cmake | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/cmake_support/OST.cmake b/cmake_support/OST.cmake
index 3b6821210..7d6ff14ef 100644
--- a/cmake_support/OST.cmake
+++ b/cmake_support/OST.cmake
@@ -442,14 +442,15 @@ endmacro()
 #   ui_to_python(libname stagedir[input_file1 ...])
 # Description:
 #   Calls pyuic on every input file. The resulting python files are stored in
-#   the variable with name out_files.
+#   the variable with name out_files. Use with care. Has originally been 
+#   implemented for pyuic4 and ported to pyuic5 without testing. 
 #-------------------------------------------------------------------------------
 macro(ui_to_python LIBNAME PYMODDIR STAGEDIR)
   set(_input_files ${ARGN})
   add_custom_target("${LIBNAME}_ui" ALL)
   add_dependencies("_${LIBNAME}" "${LIBNAME}_ui")
   find_program(_PYUIC_EXECUTABLE
-    NAMES pyuic4-${PYTHON_VERSION} pyuic4 pyuic pyuic4.bat
+    NAMES pyuic5-${PYTHON_VERSION} pyuic5 pyuic pyuic5.bat
     PATHS  ENV PATH 
   )  
   if(NOT _PYUIC_EXECUTABLE)
@@ -503,7 +504,8 @@ endmacro()
 #
 # Description:
 #  Define a python module consisting of C++ type wrappers and/or code written in 
-#  Python.
+#  Python. user_interface_files are handled with ui_to_python that has blindly
+#  been ported from QT4 to QT5 without testing. Use with care.
 # NAME is the name of
 #-------------------------------------------------------------------------------
 macro(pymod)
-- 
GitLab