diff options
author | Christian Tismer <ctismer@gmail.com> | 2015-07-02 00:17:07 +0200 |
---|---|---|
committer | Christian Tismer <ctismer@gmail.com> | 2015-07-02 00:17:07 +0200 |
commit | 546c8ed4cff876dc2c9c06058511e7cf1b73d202 (patch) | |
tree | 28d0734a405c42e1be9396708c7019df32c9faf9 /PySide | |
parent | 234ee9a0211fc836707ac7e30643895706305383 (diff) |
add the new primitive types, which has a lot of effect.
Now certain code branches are generated again that were missing.
We are slowly getting close to 100 percent of QtCore compilation !
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/CMakeLists.txt | 8 | ||||
-rw-r--r-- | PySide/QtCore/typesystem_core_common.xml | 13 |
2 files changed, 15 insertions, 6 deletions
diff --git a/PySide/QtCore/CMakeLists.txt b/PySide/QtCore/CMakeLists.txt index b0cd15ea6..99458164c 100644 --- a/PySide/QtCore/CMakeLists.txt +++ b/PySide/QtCore/CMakeLists.txt @@ -70,9 +70,8 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qeventloop_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfactoryinterface_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfile_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfiledevice_wrapper.cpp -### missing SBK_QFLAGS_QFILE_PERMISSION__IDX ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfileinfo_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfileinfo_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfilesystemwatcher_wrapper.cpp -### ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qfsfileengine_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qgenericargument_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qgenericreturnargument_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qiodevice_wrapper.cpp @@ -86,7 +85,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaproperty_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetamethod_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmetaobject_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmimedata_wrapper.cpp -### creates error ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmodelindex_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmodelindex_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmutex_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qmutexlocker_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qobject_wrapper.cpp @@ -107,11 +106,10 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsettings_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsignalmapper_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsize_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsizef_wrapper.cpp -### missing constructor problem ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsocketnotifier_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsocketnotifier_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsysinfo_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qsystemsemaphore_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qt_wrapper.cpp -### QBool, qInstallMsgHandler ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qtemporaryfile_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qtextboundaryfinder_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtCore/qtextcodec_converterstate_wrapper.cpp diff --git a/PySide/QtCore/typesystem_core_common.xml b/PySide/QtCore/typesystem_core_common.xml index bb2b2efb9..d46ea0b2d 100644 --- a/PySide/QtCore/typesystem_core_common.xml +++ b/PySide/QtCore/typesystem_core_common.xml @@ -177,6 +177,10 @@ </conversion-rule> </primitive-type> --> + <!-- Qt5: add the new pointer-ish types --> + <primitive-type name="qintptr" /> + <primitive-type name="quintptr" /> + <primitive-type name="qptrdiff" /> <inject-code class="native" position="beginning"> bool py2kStrCheck(PyObject* obj) @@ -2851,6 +2855,7 @@ <modify-function signature="acquire(int)" allow-thread="yes"/> <modify-function signature="tryAcquire(int, int)" allow-thread="yes"/> </object-type> + <object-type name="QSocketNotifier"> <enum-type name="Type"/> <add-function signature="QSocketNotifier(PyObject*, QSocketNotifier::Type, QObject*)"> @@ -2864,7 +2869,13 @@ Shiboken::AutoDecRef fileNoValue(PyObject_CallObject(fileNo, 0)); if (%CHECKTYPE[int](fileNoValue)) { int cppFileNoValue = %CONVERTTOCPP[int](fileNoValue); - %0 = new %TYPE(cppFileNoValue, %2, %3); + /* Qt4 version: + * %0 = new %TYPE(cppFileNoValue, %2, %3); + * Qt5 has qintptr instead. + * XXX check if this means a pointer or just the pointer size cast (what I implemented) + */ + qintptr socket = (qintptr)cppFileNoValue; + %0 = new %TYPE(socket, %2, %3); } } </inject-code> |