diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/slotproxy.cpp | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 7a99f056..dc5d7c2b 100644 --- a/kjsembed/slotproxy.cpp +++ b/kjsembed/slotproxy.cpp @@ -40,14 +40,14 @@ namespace KJSEmbed { -JSSlotProxy::JSSlotProxy( QObject *parent, const char *name ) - : QObject( parent, name ? name : "slot_proxy" ), +JSSlotProxy::JSSlotProxy( TQObject *parent, const char *name ) + : TQObject( parent, name ? name : "slot_proxy" ), proxy(0), js(0) { } -JSSlotProxy::JSSlotProxy( QObject *parent, const char *name, JSObjectProxy *prx ) - : QObject( 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 QString &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 QColor &color ) +void JSSlotProxy::slot_color( const TQColor &color ) { KJS::List args; args.append( convertToValue(js->globalExec(), color) ); execute( args ); } -void JSSlotProxy::slot_font( const QFont &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 QFont &font ) }// namespace KJSEmbed -void KJSEmbed::JSSlotProxy::slot_point( const QPoint & 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 QRect & 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 QSize & 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 QPixmap & pix ) +void KJSEmbed::JSSlotProxy::slot_pixmap( const TQPixmap & pix ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( 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( QWidget * widget ) +void KJSEmbed::JSSlotProxy::slot_widget( TQWidget * widget ) { KJS::List args; if ( widget ) @@ -222,22 +222,22 @@ void KJSEmbed::JSSlotProxy::slot_widget( QWidget * widget ) execute( args ); } -void KJSEmbed::JSSlotProxy::slot_datetime( const QDateTime & dateTime ) +void KJSEmbed::JSSlotProxy::slot_datetime( const TQDateTime & dateTime ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( dateTime ) )); + args.append( convertToValue(js->globalExec(), TQVariant( dateTime ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_datedate( const QDate & date1, const QDate & date2 ) +void KJSEmbed::JSSlotProxy::slot_datedate( const TQDate & date1, const TQDate & date2 ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( date1 ) )); - args.append( convertToValue(js->globalExec(), QVariant( date2 ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date1 ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date2 ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_colorstring( const QColor & color, const QString & 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 QColor & color, const QStrin execute( args ); } -void KJSEmbed::JSSlotProxy::slot_image( const QImage & image ) +void KJSEmbed::JSSlotProxy::slot_image( const TQImage & image ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( image ) )); + args.append( convertToValue(js->globalExec(), TQVariant( image ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_date( const QDate & date ) +void KJSEmbed::JSSlotProxy::slot_date( const TQDate & date ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( date ) )); + args.append( convertToValue(js->globalExec(), TQVariant( date ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_time( const QTime &time ) +void KJSEmbed::JSSlotProxy::slot_time( const TQTime &time ) { KJS::List args; - args.append( convertToValue(js->globalExec(), QVariant( time ) )); + args.append( convertToValue(js->globalExec(), TQVariant( time ) )); execute( args ); } -void KJSEmbed::JSSlotProxy::slot_variant( const QVariant & variant ) +void KJSEmbed::JSSlotProxy::slot_variant( const TQVariant & variant ) { KJS::List args; args.append( convertToValue(js->globalExec(), variant ) ); |