diff options
author | renato <renato.filho@openbossa.org> | 2009-12-28 16:56:41 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-30 14:36:39 -0200 |
commit | b9ce558e2976e14c1027f67468205c5796e80eb6 (patch) | |
tree | bf04435ae459cedd30b32e32c1ce2bfc4f84493e /PySide/QtCore | |
parent | 73b5357057b7ca2a72806313877860488cce0854 (diff) |
Implemented support for classname on metaobject.
Export QMetaobject.
Reviewer: Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/CMakeLists.txt | 1 | ||||
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 19 |
2 files changed, 18 insertions, 2 deletions
diff --git a/PySide/QtCore/CMakeLists.txt b/PySide/QtCore/CMakeLists.txt index 3bdec2010..7f2100504 100644 --- a/PySide/QtCore/CMakeLists.txt +++ b/PySide/QtCore/CMakeLists.txt @@ -39,6 +39,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qlocale_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaclassinfo_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaenum_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaproperty_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaobject_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmimedata_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmodelindex_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmutex_wrapper.cpp diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 2bc00110a..cb71e5816 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -41,6 +41,17 @@ <!-- We do not export QStreamManipulator, so use QTextStream.setRealNumberPrecision instead of this --> <rejection class="" function-name="qSetRealNumberPrecision" /> + <!-- TODO: We do not support void* or const void* as arg --> + <rejection class="QGenericArgument"/> + <rejection class="QMetaObject" function-name="activate"/> + <rejection class="QMetaObject" function-name="invokeMethod"/> + <rejection class="QMetaObject" function-name="newInstance"/> + <rejection class="QMetaObject" function-name="metacall"/> + <rejection class="QMetaObject" function-name="static_metacall"/> + <!-- TODO: Support to addGuard(QObject**) --> + <rejection class="QMetaObject" function-name="addGuard"/> + <rejection class="QMetaObject" function-name="changeGuard"/> + <rejection class="QMetaObject" function-name="removeGuard"/> <rejection class="QFutureSynchronizer"/> <rejection class="QByteArray" function-name="contains"/> @@ -684,7 +695,6 @@ <rejection class="reverse_iterator"/> <rejection class="stat"/> <rejection class="tm"/> - <rejection class="*" function-name="metaObject"/> <rejection class="QVariant" function-name="canConvert"/> <rejection class="QVariant" function-name="fromValue"/> <rejection class="QVariant" function-name="value"/> @@ -1257,7 +1267,11 @@ <include file-name="QCoreApplication" location="global"/> <include file-name="signalmanager.h" location="local" /> </extra-includes> - + <modify-function signature="metaObject() const"> + <inject-code class="target" position="beginning"> + %PYARG_0 = %CONVERTTOPYTHON[%RETURN_TYPE](%CPPSELF.%FUNCTION_NAME()); + </inject-code> + </modify-function> <modify-function signature="deleteLater()"> <modify-argument index="this"> <define-ownership owner="c++"/> @@ -2557,6 +2571,7 @@ </value-type> <object-type name="QMetaObject"> <include file-name="qobjectdefs.h" location="global" /> + <modify-function signature="connect(const QObject*, int, const QObject*, int, int, int*)" remove="all" /> </object-type> <value-type name="QMetaProperty" > <modify-function signature="enclosingMetaObject()const" remove="all" /> |