diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-12 17:37:10 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-12 17:37:10 -0200 |
commit | 9eae7e3672dcad1796763b2d2b4debac49074cf9 (patch) | |
tree | 2035fcf09d9ecabbc4d05828a63f8176acb9c716 /PySide/QtCore | |
parent | 8e8c65f888707143e19b124e9b82b25ffc27a9da (diff) |
Remove access to internal stuff from QtCore typesystem.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 7f207af3b..b4fee116a 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -983,8 +983,8 @@ <inject-code class="native" position="beginning" file="glue/qstring_bufferprotocol.cpp" /> <inject-code class="target" position="end"> #if PY_VERSION_HEX < 0x03000000 - SbkQString_Type.super.ht_type.tp_as_buffer = &SbkQStringBufferProc; - SbkQString_Type.super.ht_type.tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER; + Shiboken::SbkType<QString>()->tp_as_buffer = &SbkQStringBufferProc; + Shiboken::SbkType<QString>()->tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER; #endif </inject-code> @@ -1868,8 +1868,8 @@ <inject-code class="native" position="beginning" file="glue/qbytearray_bufferprotocol.cpp" /> <inject-code class="target" position="end"> #if PY_VERSION_HEX < 0x03000000 - SbkQByteArray_Type.super.ht_type.tp_as_buffer = &SbkQByteArrayBufferProc; - SbkQByteArray_Type.super.ht_type.tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER; + Shiboken::SbkType<QByteArray>()->tp_as_buffer = &SbkQByteArrayBufferProc; + Shiboken::SbkType<QByteArray>()->tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER; #endif </inject-code> <!-- removed functions --> @@ -2349,8 +2349,8 @@ <inject-code class="target" position="beginning"> // %FUNCTION_NAME() - disable generation of c++ function call Shiboken::AutoDecRef emptyTuple(PyTuple_New(0)); - PyObject* pyTimer = SbkQTimer_Type.super.ht_type.tp_new((PyTypeObject*)&SbkQTimer_Type, emptyTuple, 0); - SbkQTimer_Type.super.ht_type.tp_init(pyTimer, emptyTuple, 0); + PyObject* pyTimer = Shiboken::SbkType<QTimer>()->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0); + Shiboken::SbkType<QTimer>()->tp_init(pyTimer, emptyTuple, 0); QTimer* timer = SbkQTimer_cptr(pyTimer); PyObject* result = PyObject_CallMethod(pyTimer, "connect", "OsOs", pyTimer, SIGNAL(timeout()), %PYARG_2, %3); @@ -2364,8 +2364,8 @@ <inject-code class="target" position="beginning"> // %FUNCTION_NAME() - disable generation of c++ function call Shiboken::AutoDecRef emptyTuple(PyTuple_New(0)); - PyObject* pyTimer = SbkQTimer_Type.super.ht_type.tp_new((PyTypeObject*)&SbkQTimer_Type, emptyTuple, 0); - SbkQTimer_Type.super.ht_type.tp_init(pyTimer, emptyTuple, 0); + PyObject* pyTimer = Shiboken::SbkType<QTimer>()->tp_new(Shiboken::SbkType<QTimer>(), emptyTuple, 0); + Shiboken::SbkType<QTimer>()->tp_init(pyTimer, emptyTuple, 0); QTimer* timer = SbkQTimer_cptr(pyTimer); timer->setSingleShot(true); timer->connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater())); |