From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/tools/doxygen2imp_cpp.xsl | 68 +++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'kjsembed/tools/doxygen2imp_cpp.xsl') diff --git a/kjsembed/tools/doxygen2imp_cpp.xsl b/kjsembed/tools/doxygen2imp_cpp.xsl index 4e8d73bf..c485188c 100644 --- a/kjsembed/tools/doxygen2imp_cpp.xsl +++ b/kjsembed/tools/doxygen2imp_cpp.xsl @@ -86,9 +86,9 @@ void Imp::addBindings( KJS::ExecState *exec, KJS { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<QComboBox *>( obj ); + return dynamic_cast<TQComboBox *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); @@ -122,7 +122,7 @@ KJS::Value Imp::call( KJS::ExecState *exec, KJS: break; } - QString msg = i18n( "Imp has no method with id '%1'" ).arg( mid ); + TQString msg = i18n( "Imp has no method with id '%1'" ).arg( mid ); KJS::Object err = KJS::Error::create( exec, KJS::ReferenceError, msg.utf8() ); exec->setException( err ); return err; @@ -141,11 +141,11 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object { - - QString arg = (args.size() >= ) ? args[].toString(exec).qstring() : QString::null; + + TQString arg = (args.size() >= ) ? args[].toString(exec).qstring() : TQString::null; - - QString arg = (args.size() >= ) ? args[].toString(exec).qstring() : QString::null; + + TQString arg = (args.size() >= ) ? args[].toString(exec).qstring() : TQString::null; const char *arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; @@ -162,44 +162,44 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object bool arg = (args.size() >= ) ? args[].toBoolean(exec) : false; - - QFont arg; // TODO + + TQFont arg; // TODO - - QPalette arg; // TODO + + TQPalette arg; // TODO - - QStringList arg = extractQStringList(exec, args, ); + + TQStringList arg = extractTQStringList(exec, args, ); - - QStrList arg; + + TQStrList arg; if ( args.size() >= ) { // TODO: populate the list } - - QRect arg = extractQRect(exec, args, ); + + TQRect arg = extractTQRect(exec, args, ); - - QSize arg = extractQSize(exec, args, ); + + TQSize arg = extractTQSize(exec, args, ); - - QPixmap arg = extractQPixmap(exec, args, ); + + TQPixmap arg = extractTQPixmap(exec, args, ); - - QColor arg = extractQColor(exec, args, ); + + TQColor arg = extractTQColor(exec, args, ); - - QDate arg = extractQDate(exec, args, ); + + TQDate arg = extractTQDate(exec, args, ); - - QTime arg = extractQTime(exec, args, ); + + TQTime arg = extractTQTime(exec, args, ); - - QDateTime arg = extractQDateTime(exec, args, ); + + TQDateTime arg = extractTQDateTime(exec, args, ); - QComboBox::Policy arg; // TODO (hack for combo box) + TQComboBox::Policy arg; // TODO (hack for combo box) // Unsupported parameter @@ -250,8 +250,8 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object return KJS::Number( ret ); - - QString ret; + + TQString ret; ret = instance->( arg, ); return KJS::String( ret ); @@ -264,8 +264,8 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object return KJS::String( ret ); - - QStringList ret; + + TQStringList ret; ret = instance->( arg, ); -- cgit v1.2.1