Rename PyObject_Q* to PyObject_TQ*

pull/1/head
Timothy Pearson 13 years ago
parent 60933ac14a
commit f21d0e5e0c

@ -391,7 +391,7 @@ type:TQPointArray
int size = PyList_Size(obj); int size = PyList_Size(obj);
TQPointArray pa(size); TQPointArray pa(size);
for(int c=0;c<size;c++) { for(int c=0;c<size;c++) {
TQPoint p = fromPyObject_QPoint(PyList_GetItem(obj,c), ok); TQPoint p = fromPyObject_TQPoint(PyList_GetItem(obj,c), ok);
if (!*ok) return false; if (!*ok) return false;
pa.setPoint(c,p); pa.setPoint(c,p);
} }
@ -403,7 +403,7 @@ type:TQPointArray
PyObject *obj = PyList_New(val.size()); PyObject *obj = PyList_New(val.size());
if (!obj) return NULL; if (!obj) return NULL;
for(uint c=0;c<val.size();c++) { for(uint c=0;c<val.size();c++) {
PyObject *tuple = toPyObject_QPoint( val.point(c) ); PyObject *tuple = toPyObject_TQPoint( val.point(c) );
PyList_SetItem(obj, c, tuple); PyList_SetItem(obj, c, tuple);
// Py_DECREF(tuple); // Py_DECREF(tuple);
} }
@ -483,8 +483,8 @@ type:TQDateTime
PyObject *date_tuple, *time_tuple; PyObject *date_tuple, *time_tuple;
if (PyArg_ParseTuple(obj, (char*)"OO", &date_tuple, &time_tuple)) { if (PyArg_ParseTuple(obj, (char*)"OO", &date_tuple, &time_tuple)) {
TQDateTime dt; TQDateTime dt;
dt.setTime( fromPyObject_QTime(time_tuple, ok) ); dt.setTime( fromPyObject_TQTime(time_tuple, ok) );
if (*ok) dt.setDate( fromPyObject_QDate(date_tuple, ok) ); if (*ok) dt.setDate( fromPyObject_TQDate(date_tuple, ok) );
return dt; return dt;
} }
@ -492,8 +492,8 @@ type:TQDateTime
} }
%% to_pyobj %% to_pyobj
{ {
PyObject *date_tuple = toPyObject_QDate( val.date() ); PyObject *date_tuple = toPyObject_TQDate( val.date() );
PyObject *time_tuple = toPyObject_QTime( val.time() ); PyObject *time_tuple = toPyObject_TQTime( val.time() );
return Py_BuildValue((char*)"OO", date_tuple, time_tuple ); return Py_BuildValue((char*)"OO", date_tuple, time_tuple );
} }
%% marshal %% marshal

Loading…
Cancel
Save