소스 검색

Merge pull request #558 from jcfr/fix-ctkWrapPythonQt-for-qt5

Do not require QWidget in decorator generated by ctkWrapPythonQt
Jean-Christophe Fillion-Robin 10 년 전
부모
커밋
e4e9cc326d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      CMake/ctkWrapPythonQt.py

+ 1 - 1
CMake/ctkWrapPythonQt.py

@@ -168,7 +168,7 @@ def ctk_wrap_pythonqt(target, namespace, output_dir, input_files, extra_verbose)
 #ifndef __${namespace}_${target}_h
 #define __${namespace}_${target}_h
 
-#include <QWidget>
+#include <QObject>
 ${includes}
 ${pythonqtWrappers}
 #endif