diff options
Diffstat (limited to 'lib/kross/python/pythonobject.cpp')
-rw-r--r-- | lib/kross/python/pythonobject.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kross/python/pythonobject.cpp b/lib/kross/python/pythonobject.cpp index d59087b3..f765cbbd 100644 --- a/lib/kross/python/pythonobject.cpp +++ b/lib/kross/python/pythonobject.cpp @@ -26,7 +26,7 @@ PythonObject::PythonObject(const Py::Object& object) : Kross::Api::Object() , m_pyobject(object) { - krossdebug( QString("PythonObject::PythonObject() constructor") ); + krossdebug( TQString("PythonObject::PythonObject() constructor") ); Py::List x( object.dir() ); for(Py::Sequence::iterator i= x.begin(); i != x.end(); ++i) { @@ -37,7 +37,7 @@ PythonObject::PythonObject(const Py::Object& object) //if(! m_pyobject.hasAttr( (*i).str() )) continue; Py::Object o = m_pyobject.getAttr(s); - QString t; + TQString t; if(o.isCallable()) t += "isCallable "; if(o.isDict()) t += "isDict "; if(o.isList()) t += "isList "; @@ -46,7 +46,7 @@ PythonObject::PythonObject(const Py::Object& object) if(o.isSequence()) t += "isSequence "; if(o.isTrue()) t += "isTrue "; if(o.isInstance()) t += "isInstance "; - krossdebug( QString("PythonObject::PythonObject() method '%1' (%2)").arg( (*i).str().as_string().c_str() ).arg(t) ); + krossdebug( TQString("PythonObject::PythonObject() method '%1' (%2)").tqarg( (*i).str().as_string().c_str() ).tqarg(t) ); if(o.isCallable()) m_calls.append( (*i).str().as_string().c_str() ); @@ -57,26 +57,26 @@ PythonObject::~PythonObject() { } -const QString PythonObject::getClassName() const +const TQString PythonObject::getClassName() const { return "Kross::Python::PythonObject"; } -Kross::Api::Object::Ptr PythonObject::call(const QString& name, Kross::Api::List::Ptr arguments) +Kross::Api::Object::Ptr PythonObject::call(const TQString& name, Kross::Api::List::Ptr arguments) { - krossdebug( QString("PythonObject::call(%1)").arg(name) ); + krossdebug( TQString("PythonObject::call(%1)").tqarg(name) ); if(m_pyobject.isInstance()) { - //if(! m_calls.contains(n)) throw ... + //if(! m_calls.tqcontains(n)) throw ... PyObject* r = PyObject_CallMethod(m_pyobject.ptr(), (char*) name.latin1(), 0); if(! r) { //FIXME happens too if e.g. number of arguments doesn't match !!! Py::Object errobj = Py::value(Py::Exception()); // get last error - throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(QString("Failed to call method '%1': %2").arg(name).arg(errobj.as_string().c_str())) ); + throw Kross::Api::Exception::Ptr( new Kross::Api::Exception(TQString("Failed to call method '%1': %2").tqarg(name).tqarg(errobj.as_string().c_str())) ); } Py::Object result(r, true); - //krossdebug( QString("PythonObject::call(%1) call return value = '%2'").arg(name).arg(result.as_string().c_str()) ); + //krossdebug( TQString("PythonObject::call(%1) call return value = '%2'").tqarg(name).tqarg(result.as_string().c_str()) ); return PythonExtension::toObject(result); } /*TODO??? ELSE create class instance for class-definitions??? @@ -87,7 +87,7 @@ Kross::Api::Object::Ptr PythonObject::call(const QString& name, Kross::Api::List return Kross::Api::Object::call(name, arguments); } -QStringList PythonObject::getCalls() +TQStringList PythonObject::getCalls() { return m_calls; } |