diff options
Diffstat (limited to 'kjsembed/bindings/iconset_imp.cpp')
-rw-r--r-- | kjsembed/bindings/iconset_imp.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kjsembed/bindings/iconset_imp.cpp b/kjsembed/bindings/iconset_imp.cpp index 3575cc94..96879546 100644 --- a/kjsembed/bindings/iconset_imp.cpp +++ b/kjsembed/bindings/iconset_imp.cpp @@ -22,9 +22,9 @@ #include <kjsembed/global.h> #include <kjsembed/jsvalueproxy.h> #include <kjsembed/jsbinding.h> -#include <qvariant.h> -#include <qiconset.h> -#include <qpixmap.h> +#include <tqvariant.h> +#include <tqiconset.h> +#include <tqpixmap.h> #include "iconset_imp.h" @@ -109,29 +109,29 @@ KJS::Value IconsetImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS: return KJS::Value(); } - if ( op->typeName() != "QIconSet" ) { + if ( op->typeName() != "TQIconSet" ) { kdWarning() << "IconsetImp::call() failed, type is " << op->typeName() << endl; return KJS::Value(); } - QIconSet iconset = op->toVariant().toIconSet(); + TQIconSet iconset = op->toVariant().toIconSet(); KJS::Value retValue = KJS::Value(); switch ( mid ) { case MethodReset: { - QPixmap pix = extractQPixmap(exec, args, 0); - QIconSet::Size size = (QIconSet::Size) extractInt(exec, args, 1 ); + TQPixmap pix = extractQPixmap(exec, args, 0); + TQIconSet::Size size = (TQIconSet::Size) extractInt(exec, args, 1 ); iconset.reset(pix,size); break; } case MethodSetPixmap: { - QPixmap pix = extractQPixmap( exec, args, 0); - QString fname = extractQString( exec, args, 0); - QIconSet::Size size = (QIconSet::Size) extractInt(exec, args, 1 ); - QIconSet::Mode mode = (QIconSet::Mode) extractInt( exec, args, 2 ); - QIconSet::State state = (QIconSet::State) extractInt( exec, args, 3); + TQPixmap pix = extractQPixmap( exec, args, 0); + TQString fname = extractQString( exec, args, 0); + TQIconSet::Size size = (TQIconSet::Size) extractInt(exec, args, 1 ); + TQIconSet::Mode mode = (TQIconSet::Mode) extractInt( exec, args, 2 ); + TQIconSet::State state = (TQIconSet::State) extractInt( exec, args, 3); if( pix.isNull() ) iconset.setPixmap( fname, size, mode, state ); else @@ -140,13 +140,13 @@ KJS::Value IconsetImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS: } case MethodPixmap: { - QPixmap pix; + TQPixmap pix; if( args.size() == 3 ) { - QIconSet::Size size = (QIconSet::Size)extractInt( exec, args, 0 ); - QIconSet::Mode mode = (QIconSet::Mode)extractInt( exec, args, 1 ); - QIconSet::State state = (QIconSet::State)extractInt( exec, args, 1 ); + TQIconSet::Size size = (TQIconSet::Size)extractInt( exec, args, 0 ); + TQIconSet::Mode mode = (TQIconSet::Mode)extractInt( exec, args, 1 ); + TQIconSet::State state = (TQIconSet::State)extractInt( exec, args, 1 ); pix = iconset.pixmap( size, mode, state ); } else |