summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/iconset_imp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/iconset_imp.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/iconset_imp.cpp')
-rw-r--r--kjsembed/bindings/iconset_imp.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kjsembed/bindings/iconset_imp.cpp b/kjsembed/bindings/iconset_imp.cpp
index 96879546..230fbe63 100644
--- a/kjsembed/bindings/iconset_imp.cpp
+++ b/kjsembed/bindings/iconset_imp.cpp
@@ -48,7 +48,7 @@ void IconsetImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
return;
}
- if ( op->typeName() != "QIconset" ) {
+ if ( op->typeName() != "TQIconset" ) {
kdWarning() << "IconsetImp::addBindings() failed, type is " << op->typeName() << endl;
return;
}
@@ -109,29 +109,29 @@ KJS::Value IconsetImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS:
return KJS::Value();
}
- if ( op->typeName() != "TQIconSet" ) {
+ if ( op->typeName() != "TTQIconSet" ) {
kdWarning() << "IconsetImp::call() failed, type is " << op->typeName() << endl;
return KJS::Value();
}
- TQIconSet iconset = op->toVariant().toIconSet();
+ TTQIconSet iconset = op->toVariant().toIconSet();
KJS::Value retValue = KJS::Value();
switch ( mid ) {
case MethodReset:
{
- TQPixmap pix = extractQPixmap(exec, args, 0);
- TQIconSet::Size size = (TQIconSet::Size) extractInt(exec, args, 1 );
+ TTQPixmap pix = extractTQPixmap(exec, args, 0);
+ TTQIconSet::Size size = (TTQIconSet::Size) extractInt(exec, args, 1 );
iconset.reset(pix,size);
break;
}
case MethodSetPixmap:
{
- 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);
+ TTQPixmap pix = extractTQPixmap( exec, args, 0);
+ TTQString fname = extractTQString( exec, args, 0);
+ TTQIconSet::Size size = (TTQIconSet::Size) extractInt(exec, args, 1 );
+ TTQIconSet::Mode mode = (TTQIconSet::Mode) extractInt( exec, args, 2 );
+ TTQIconSet::State state = (TTQIconSet::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:
{
- TQPixmap pix;
+ TTQPixmap pix;
if( args.size() == 3 )
{
- 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 );
+ TTQIconSet::Size size = (TTQIconSet::Size)extractInt( exec, args, 0 );
+ TTQIconSet::Mode mode = (TTQIconSet::Mode)extractInt( exec, args, 1 );
+ TTQIconSet::State state = (TTQIconSet::State)extractInt( exec, args, 1 );
pix = iconset.pixmap( size, mode, state );
}
else