summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings/qmenuitem_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/qtbindings/qmenuitem_imp.cpp')
-rw-r--r--kjsembed/qtbindings/qmenuitem_imp.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kjsembed/qtbindings/qmenuitem_imp.cpp b/kjsembed/qtbindings/qmenuitem_imp.cpp
index fa994b21..c2be558c 100644
--- a/kjsembed/qtbindings/qmenuitem_imp.cpp
+++ b/kjsembed/qtbindings/qmenuitem_imp.cpp
@@ -1,12 +1,12 @@
-#include <qcstring.h>
-#include <qimage.h>
-#include <qpainter.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qfont.h>
+#include <tqcstring.h>
+#include <tqimage.h>
+#include <tqpainter.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqfont.h>
#include <kjs/object.h>
@@ -15,7 +15,7 @@
#include <kjsembed/jsopaqueproxy.h>
#include <kjsembed/jsbinding.h>
-#include <qmenudata.h>
+#include <tqmenudata.h>
#include "qmenuitem_imp.h"
/**
@@ -43,7 +43,7 @@ void QMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object
};
int idx = 0;
- QCString lastName;
+ TQCString lastName;
while( methods[idx].name ) {
if ( lastName != methods[idx].name ) {
@@ -91,24 +91,24 @@ void QMenuItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
/**
- * Extract a QMenuItem pointer from an Object.
+ * Extract a TQMenuItem pointer from an Object.
*/
-QMenuItem *QMenuItemImp::toQMenuItem( KJS::Object &self )
+TQMenuItem *QMenuItemImp::toQMenuItem( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- QObject *obj = ob->object();
+ TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<QMenuItem *>( obj );
+ return dynamic_cast<TQMenuItem *>( obj );
}
- if( !JSProxy::checkType(self, JSProxy::ObjectProxy, "QMenuItem") ) {
- QObject *obj = JSProxy::toObjectProxy( self.imp() )->object();
- return dynamic_cast<QMenuItem *>( obj );
+ if( !JSProxy::checkType(self, JSProxy::ObjectProxy, "TQMenuItem") ) {
+ TQObject *obj = JSProxy::toObjectProxy( self.imp() )->object();
+ return dynamic_cast<TQMenuItem *>( obj );
}
- if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "QMenuItem") ) {
- return JSProxy::toOpaqueProxy( self.imp() )->toNative<QMenuItem>();
+ if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "TQMenuItem") ) {
+ return JSProxy::toOpaqueProxy( self.imp() )->toNative<TQMenuItem>();
}
return 0;
@@ -129,7 +129,7 @@ KJS::Object QMenuItemImp::construct( KJS::ExecState *exec, const KJS::List &args
break;
}
- QString msg = i18n("QMenuItemCons has no constructor with id '%1'").arg(id);
+ TQString msg = i18n("QMenuItemCons has no constructor with id '%1'").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -138,9 +138,9 @@ KJS::Object QMenuItemImp::QMenuItem_1( KJS::ExecState *exec, const KJS::List &ar
{
- // We should now create an instance of the QMenuItem object
+ // We should now create an instance of the TQMenuItem object
- QMenuItem *ret = new QMenuItem(
+ TQMenuItem *ret = new TQMenuItem(
);
return KJS::Object();
@@ -236,7 +236,7 @@ KJS::Value QMenuItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ
break;
}
- QString msg = i18n( "QMenuItemImp has no method with id '%1'" ).arg( id );
+ TQString msg = i18n( "QMenuItemImp has no method with id '%1'" ).arg( id );
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -254,14 +254,14 @@ KJS::Value QMenuItemImp::iconSet_4( KJS::ExecState *exec, KJS::Object &obj, cons
{
instance->iconSet( );
- return KJS::Value(); // Returns 'QIconSet *'
+ return KJS::Value(); // Returns 'TQIconSet *'
}
KJS::Value QMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString ret;
+ TQString ret;
ret = instance->text( );
return KJS::String( ret );
@@ -270,7 +270,7 @@ KJS::Value QMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const K
KJS::Value QMenuItemImp::whatsThis_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString ret;
+ TQString ret;
ret = instance->whatsThis( );
return KJS::String( ret );
@@ -287,7 +287,7 @@ KJS::Value QMenuItemImp::popup_8( KJS::ExecState *exec, KJS::Object &obj, const
{
instance->popup( );
- return KJS::Value(); // Returns 'QPopupMenu *'
+ return KJS::Value(); // Returns 'TQPopupMenu *'
}
@@ -295,7 +295,7 @@ KJS::Value QMenuItemImp::widget_9( KJS::ExecState *exec, KJS::Object &obj, const
{
instance->widget( );
- return KJS::Value(); // Returns 'QWidget *'
+ return KJS::Value(); // Returns 'TQWidget *'
}
@@ -303,7 +303,7 @@ KJS::Value QMenuItemImp::custom_10( KJS::ExecState *exec, KJS::Object &obj, cons
{
instance->custom( );
- return KJS::Value(); // Returns 'QCustomMenuItem *'
+ return KJS::Value(); // Returns 'TQCustomMenuItem *'
}
@@ -318,7 +318,7 @@ KJS::Value QMenuItemImp::signal_12( KJS::ExecState *exec, KJS::Object &obj, cons
{
instance->signal( );
- return KJS::Value(); // Returns 'QSignal *'
+ return KJS::Value(); // Returns 'TQSignal *'
}
@@ -379,7 +379,7 @@ KJS::Value QMenuItemImp::isEnabledAndVisible_18( KJS::ExecState *exec, KJS::Obje
KJS::Value QMenuItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
instance->setText(
arg0 );
@@ -412,7 +412,7 @@ KJS::Value QMenuItemImp::setVisible_21( KJS::ExecState *exec, KJS::Object &obj,
KJS::Value QMenuItemImp::setWhatsThis_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
instance->setWhatsThis(
arg0 );