aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-02-12 17:37:10 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-02-12 17:37:10 -0200
commit9eae7e3672dcad1796763b2d2b4debac49074cf9 (patch)
tree2035fcf09d9ecabbc4d05828a63f8176acb9c716 /PySide/QtCore
parent8e8c65f888707143e19b124e9b82b25ffc27a9da (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.xml16
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 &lt; 0x03000000
- SbkQString_Type.super.ht_type.tp_as_buffer = &amp;SbkQStringBufferProc;
- SbkQString_Type.super.ht_type.tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER;
+ Shiboken::SbkType&lt;QString>()->tp_as_buffer = &amp;SbkQStringBufferProc;
+ Shiboken::SbkType&lt;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 &lt; 0x03000000
- SbkQByteArray_Type.super.ht_type.tp_as_buffer = &amp;SbkQByteArrayBufferProc;
- SbkQByteArray_Type.super.ht_type.tp_flags |= Py_TPFLAGS_HAVE_GETCHARBUFFER;
+ Shiboken::SbkType&lt;QByteArray>()->tp_as_buffer = &amp;SbkQByteArrayBufferProc;
+ Shiboken::SbkType&lt;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*)&amp;SbkQTimer_Type, emptyTuple, 0);
- SbkQTimer_Type.super.ht_type.tp_init(pyTimer, emptyTuple, 0);
+ PyObject* pyTimer = Shiboken::SbkType&lt;QTimer>()->tp_new(Shiboken::SbkType&lt;QTimer>(), emptyTuple, 0);
+ Shiboken::SbkType&lt;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*)&amp;SbkQTimer_Type, emptyTuple, 0);
- SbkQTimer_Type.super.ht_type.tp_init(pyTimer, emptyTuple, 0);
+ PyObject* pyTimer = Shiboken::SbkType&lt;QTimer>()->tp_new(Shiboken::SbkType&lt;QTimer>(), emptyTuple, 0);
+ Shiboken::SbkType&lt;QTimer>()->tp_init(pyTimer, emptyTuple, 0);
QTimer* timer = SbkQTimer_cptr(pyTimer);
timer->setSingleShot(true);
timer->connect(timer, SIGNAL(timeout()), timer, SLOT(deleteLater()));