diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:51:26 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-21 14:52:09 -0300 |
commit | 9af36fbb64f19842c0cc797c0b586b3a686805e8 (patch) | |
tree | 6bbc050ded0f85517ea75f5dc6dc1ed172168248 /PySide | |
parent | aa12538d63685ef8f75adaa79411b751929b727d (diff) |
Added all original pyside unit tests to the shiboken version.
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/CMakeLists.txt | 16 | ||||
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 26 | ||||
-rw-r--r-- | PySide/__init__.py | 1 |
3 files changed, 31 insertions, 12 deletions
diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index aa4b114d6..75ca0fac0 100644 --- a/PySide/CMakeLists.txt +++ b/PySide/CMakeLists.txt @@ -12,4 +12,18 @@ COMMENT "Running generator for ${module}..." ) endmacro(execute_generator) -add_subdirectory(QtCore) +# Only add subdirectory if the associated Qt module is found. +macro(HAS_QT_MODULE var name) +IF (${var}) + add_subdirectory(${name}) + execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_BINARY_DIR}/${name}/${name}.so" + "${CMAKE_BINARY_DIR}/PySide/${name}.so") +else (${var}) + message(STATUS "${name} NOT found. ${name} support disabled.") +endif (${var}) +endmacro(HAS_QT_MODULE) + +execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_CURRENT_SOURCE_DIR}/__init__.py" + "${CMAKE_BINARY_DIR}/PySide/__init__.py") + +HAS_QT_MODULE(QT_QTCORE_FOUND QtCore) diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 2c0533ad9..2b3bb89ed 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -3,7 +3,10 @@ <!-- Rejections due to shiboken bugs --> <rejection class="QString" function-name="replace"/> <!-- A bug in overload method decisor --> - <!-- A bug when we have global functions with just one parameter --> + <!-- + Stream manipulators does not fits into python language, + so we need to do a lot of inject code to handle them. + --> <rejection class="" function-name="bin" /> <rejection class="" function-name="bom" /> <rejection class="" function-name="center" /> @@ -21,12 +24,6 @@ <rejection class="" function-name="noforcesign" /> <rejection class="" function-name="noshowbase" /> <rejection class="" function-name="oct" /> - <rejection class="" function-name="qAddPostRoutine" /> - <rejection class="" function-name="qCompress" /> - <rejection class="" function-name="qInf" /> - <rejection class="" function-name="qUncompress" /> - <rejection class="" function-name="qRemovePostRoutine" /> - <rejection class="" function-name="qSetRealNumberPrecision" /> <rejection class="" function-name="reset" /> <rejection class="" function-name="right" /> <rejection class="" function-name="scientific" /> @@ -34,10 +31,17 @@ <rejection class="" function-name="uppercasebase" /> <rejection class="" function-name="uppercasedigits" /> <rejection class="" function-name="ws" /> - <rejection class="" function-name="" /> - <rejection class="" function-name="" /> - <rejection class="" function-name="" /> - <!-- End of rejections due to shiboken bugs --> + <!-- End of rejections --> + <rejection class="" function-name="qAddPostRoutine" /> + <rejection class="" function-name="qRemovePostRoutine" /> + <!-- Removed because it have uchar* in their arguments--> + <rejection class="" function-name="qCompress" /> + <!-- Removed because it's nto part of the public API, I guess --> + <rejection class="" function-name="qInf" /> + <!-- Same as qCompress --> + <rejection class="" function-name="qUncompress" /> + <!-- We do not export QStreamManipulator, so use QTextStream.setRealNumberPrecision instead of this --> + <rejection class="" function-name="qSetRealNumberPrecision" /> <rejection class="QFutureSynchronizer"/> diff --git a/PySide/__init__.py b/PySide/__init__.py new file mode 100644 index 000000000..80970b9e5 --- /dev/null +++ b/PySide/__init__.py @@ -0,0 +1 @@ +__all__ = ['QtCore'] |