summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/iconset_imp.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:44:01 +0000
commit479f5f799523bffbcc83dff581a2299c047c6fff (patch)
tree186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/bindings/iconset_imp.cpp
parentf1dbff6145c98324ff82e34448b7483727e8ace4 (diff)
downloadtdebindings-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/bindings/iconset_imp.cpp')
-rw-r--r--kjsembed/bindings/iconset_imp.cpp32
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