diff options
-rw-r--r-- | dcoppython/shell/marshal_funcs.data | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dcoppython/shell/marshal_funcs.data b/dcoppython/shell/marshal_funcs.data index 22b36c26..fe22e414 100644 --- a/dcoppython/shell/marshal_funcs.data +++ b/dcoppython/shell/marshal_funcs.data @@ -391,7 +391,7 @@ type:TQPointArray int size = PyList_Size(obj); TQPointArray pa(size); 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; pa.setPoint(c,p); } @@ -403,7 +403,7 @@ type:TQPointArray PyObject *obj = PyList_New(val.size()); if (!obj) return NULL; 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); // Py_DECREF(tuple); } @@ -483,8 +483,8 @@ type:TQDateTime PyObject *date_tuple, *time_tuple; if (PyArg_ParseTuple(obj, (char*)"OO", &date_tuple, &time_tuple)) { TQDateTime dt; - dt.setTime( fromPyObject_QTime(time_tuple, ok) ); - if (*ok) dt.setDate( fromPyObject_QDate(date_tuple, ok) ); + dt.setTime( fromPyObject_TQTime(time_tuple, ok) ); + if (*ok) dt.setDate( fromPyObject_TQDate(date_tuple, ok) ); return dt; } @@ -492,8 +492,8 @@ type:TQDateTime } %% to_pyobj { - PyObject *date_tuple = toPyObject_QDate( val.date() ); - PyObject *time_tuple = toPyObject_QTime( val.time() ); + PyObject *date_tuple = toPyObject_TQDate( val.date() ); + PyObject *time_tuple = toPyObject_TQTime( val.time() ); return Py_BuildValue((char*)"OO", date_tuple, time_tuple ); } %% marshal |