From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/bindings/rect_imp.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kjsembed/bindings/rect_imp.cpp') diff --git a/kjsembed/bindings/rect_imp.cpp b/kjsembed/bindings/rect_imp.cpp index eb392722..a36b6759 100644 --- a/kjsembed/bindings/rect_imp.cpp +++ b/kjsembed/bindings/rect_imp.cpp @@ -38,7 +38,7 @@ namespace Bindings { } void Rect::addBindings( KJS::ExecState *exec, KJS::Object &object ) { - if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQRect") ) return; + if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQRect") ) return; JSProxy::MethodTable methods[] = { { Methodx, "x" }, @@ -58,12 +58,12 @@ namespace Bindings { } KJS::Value Rect::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQRect") ) return KJS::Value(); + if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQRect") ) return KJS::Value(); KJS::Value retValue = KJS::Value(); JSValueProxy *vp = JSProxy::toValueProxy( self.imp() ); - TQRect val = vp->toVariant().toRect(); + TTQRect val = vp->toVariant().toRect(); switch ( mid ) { case Methodx: @@ -91,10 +91,10 @@ namespace Bindings { val.setWidth(extractInt(exec, args, 0)); break; case Methodcontains: - retValue = convertToValue( exec, val.contains( extractQRect(exec, args, 0), extractBool(exec, args, 1)) ); + retValue = convertToValue( exec, val.contains( extractTQRect(exec, args, 0), extractBool(exec, args, 1)) ); break; default: - TQString msg = i18n( "Rect has no method %1" ).arg(mid); + TTQString msg = i18n( "Rect has no method %1" ).arg(mid); return throwError(exec, msg); break; } -- cgit v1.2.1