diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/size_imp.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/size_imp.cpp')
-rw-r--r-- | kjsembed/bindings/size_imp.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kjsembed/bindings/size_imp.cpp b/kjsembed/bindings/size_imp.cpp index d773507d..f2123eb7 100644 --- a/kjsembed/bindings/size_imp.cpp +++ b/kjsembed/bindings/size_imp.cpp @@ -38,7 +38,7 @@ Size::~Size() } void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) { - if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQSize") ) return; + if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQSize") ) return; JSProxy::MethodTable methods[] = { { Methodwidth, "width"}, @@ -58,9 +58,9 @@ void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) { // JSProxy::EnumTable enums[] = { - { "ScaleFree", (int)TQSize::ScaleFree }, - { "ScaleMin", (int)TQSize::ScaleMin }, - { "ScaleMax", (int)TQSize::ScaleMax }, + { "ScaleFree", (int)TTQSize::ScaleFree }, + { "ScaleMin", (int)TTQSize::ScaleMin }, + { "ScaleMax", (int)TTQSize::ScaleMax }, { 0, 0 } }; @@ -68,10 +68,10 @@ void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) { } KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQSize") ) return KJS::Value(); + if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQSize") ) return KJS::Value(); KJS::Value retValue = KJS::Value(); JSValueProxy *vp = JSProxy::toValueProxy( self.imp() ); - TQSize val = vp->toVariant().toSize(); + TTQSize val = vp->toVariant().toSize(); switch ( mid ) { case Methodwidth: @@ -89,14 +89,14 @@ KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List case Methodscale: { if( args.size() == 2 ) { - TQSize sz = extractQSize(exec, args, 0); + TTQSize sz = extractTQSize(exec, args, 0); int mode = extractInt(exec, args, 1); - val.scale(sz, (TQSize::ScaleMode)mode); + val.scale(sz, (TTQSize::ScaleMode)mode); } else { int x = extractInt(exec, args, 0); int y = extractInt(exec, args, 1); int mode = extractInt(exec, args, 2); - val.scale(x,y, (TQSize::ScaleMode)mode); + val.scale(x,y, (TTQSize::ScaleMode)mode); } break; } @@ -105,18 +105,18 @@ KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List break; case MethodexpandedTo: { - TQSize sz = extractQSize(exec, args, 0); + TTQSize sz = extractTQSize(exec, args, 0); retValue = convertToValue( exec, val.expandedTo(sz) ); break; } case MethodboundedTo: { - TQSize sz = extractQSize(exec, args, 0); + TTQSize sz = extractTQSize(exec, args, 0); retValue = convertToValue( exec, val.boundedTo(sz) ); break; } default: - TQString msg = i18n( "Size has no method %1" ).arg(mid); + TTQString msg = i18n( "Size has no method %1" ).arg(mid); return throwError(exec, msg); break; } |