diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/slotproxy.cpp | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/slotproxy.cpp')
-rw-r--r-- | kjsembed/slotproxy.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kjsembed/slotproxy.cpp b/kjsembed/slotproxy.cpp index addc7552..dc5d7c2b 100644 --- a/kjsembed/slotproxy.cpp +++ b/kjsembed/slotproxy.cpp @@ -40,14 +40,14 @@ namespace KJSEmbed { -JSSlotProxy::JSSlotProxy( TTQObject *parent, const char *name ) - : TTQObject( parent, name ? name : "slot_proxy" ), +JSSlotProxy::JSSlotProxy( TQObject *parent, const char *name ) + : TQObject( parent, name ? name : "slot_proxy" ), proxy(0), js(0) { } -JSSlotProxy::JSSlotProxy( TTQObject *parent, const char *name, JSObjectProxy *prx ) - : TTQObject( parent, name ? name : "slot_proxy" ), +JSSlotProxy::JSSlotProxy( TQObject *parent, const char *name, JSObjectProxy *prx ) + : TQObject( parent, name ? name : "slot_proxy" ), proxy(prx), js( prx ? prx->interpreter() : 0 ) { } @@ -68,7 +68,7 @@ void JSSlotProxy::slot_bool( bool b ) execute( args ); } -void JSSlotProxy::slot_string( const TTQString &s ) +void JSSlotProxy::slot_string( const TQString &s ) { KJS::List args; args.append( KJS::String(s) ); @@ -110,14 +110,14 @@ void JSSlotProxy::slot_double( double d ) execute( args ); } -void JSSlotProxy::slot_color( const TTQColor &color ) +void JSSlotProxy::slot_color( const TQColor &color ) { KJS::List args; args.append( convertToValue(js->globalExec(), color) ); execute( args ); } -void JSSlotProxy::slot_font( const TTQFont &font ) +void JSSlotProxy::slot_font( const TQFont &font ) { KJS::List args; args.append( convertToValue(js->globalExec(), font) ); @@ -126,31 +126,31 @@ void JSSlotProxy::slot_font( const TTQFont &font ) }// namespace KJSEmbed -void KJSEmbed::JSSlotProxy::slot_point( const TTQPoint & point ) +void KJSEmbed::JSSlotProxy::slot_point( const TQPoint & point ) { KJS::List args; args.append( convertToValue(js->globalExec(), point) ); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_rect( const TTQRect & rec ) +void KJSEmbed::JSSlotProxy::slot_rect( const TQRect & rec ) { KJS::List args; args.append( convertToValue(js->globalExec(), rec) ); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_size( const TTQSize & size ) +void KJSEmbed::JSSlotProxy::slot_size( const TQSize & size ) { KJS::List args; args.append( convertToValue(js->globalExec(), size) ); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_pixmap( const TTQPixmap & pix ) +void KJSEmbed::JSSlotProxy::slot_pixmap( const TQPixmap & pix ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( pix ) ) ); + args.append( convertToValue(js->globalExec(), TQVariant( pix ) ) ); execute( args ); } @@ -211,7 +211,7 @@ void KJSEmbed::JSSlotProxy::execute( const KJS::List &args ) } } -void KJSEmbed::JSSlotProxy::slot_widget( TTQWidget * widget ) +void KJSEmbed::JSSlotProxy::slot_widget( TQWidget * widget ) { KJS::List args; if ( widget ) @@ -222,22 +222,22 @@ void KJSEmbed::JSSlotProxy::slot_widget( TTQWidget * widget ) execute( args ); } -void KJSEmbed::JSSlotProxy::slot_datetime( const TTQDateTime & dateTime ) +void KJSEmbed::JSSlotProxy::slot_datetime( const TQDateTime & dateTime ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( dateTime ) )); + args.append( convertToValue(js->globalExec(), TQVariant( dateTime ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_datedate( const TTQDate & date1, const TTQDate & date2 ) +void KJSEmbed::JSSlotProxy::slot_datedate( const TQDate & date1, const TQDate & date2 ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( date1 ) )); - args.append( convertToValue(js->globalExec(), TTQVariant( date2 ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date1 ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date2 ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_colorstring( const TTQColor & color, const TTQString & string ) +void KJSEmbed::JSSlotProxy::slot_colorstring( const TQColor & color, const TQString & string ) { KJS::List args; args.append( convertToValue(js->globalExec(), color )); @@ -245,28 +245,28 @@ void KJSEmbed::JSSlotProxy::slot_colorstring( const TTQColor & color, const TTQS execute( args ); } -void KJSEmbed::JSSlotProxy::slot_image( const TTQImage & image ) +void KJSEmbed::JSSlotProxy::slot_image( const TQImage & image ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( image ) )); + args.append( convertToValue(js->globalExec(), TQVariant( image ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_date( const TTQDate & date ) +void KJSEmbed::JSSlotProxy::slot_date( const TQDate & date ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( date ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_time( const TTQTime &time ) +void KJSEmbed::JSSlotProxy::slot_time( const TQTime &time ) { KJS::List args; - args.append( convertToValue(js->globalExec(), TTQVariant( time ) )); + args.append( convertToValue(js->globalExec(), TQVariant( time ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_variant( const TTQVariant & variant ) +void KJSEmbed::JSSlotProxy::slot_variant( const TQVariant & variant ) { KJS::List args; args.append( convertToValue(js->globalExec(), variant ) ); |