summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/rect_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/rect_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/rect_imp.cpp')
-rw-r--r--kjsembed/bindings/rect_imp.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kjsembed/bindings/rect_imp.cpp b/kjsembed/bindings/rect_imp.cpp
index 82b5268b..eb392722 100644
--- a/kjsembed/bindings/rect_imp.cpp
+++ b/kjsembed/bindings/rect_imp.cpp
@@ -21,7 +21,7 @@
#include <kjsembed/global.h>
#include "rect_imp.h"
-#include <qrect.h>
+#include <tqrect.h>
#include <kjsembed/jsvalueproxy.h>
#include <kjsembed/jsbinding.h>
@@ -38,7 +38,7 @@ namespace Bindings {
}
void Rect::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "QRect") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQRect") ) 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, "QRect") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQRect") ) return KJS::Value();
KJS::Value retValue = KJS::Value();
JSValueProxy *vp = JSProxy::toValueProxy( self.imp() );
- QRect val = vp->toVariant().toRect();
+ TQRect val = vp->toVariant().toRect();
switch ( mid ) {
case Methodx:
@@ -94,7 +94,7 @@ namespace Bindings {
retValue = convertToValue( exec, val.contains( extractQRect(exec, args, 0), extractBool(exec, args, 1)) );
break;
default:
- QString msg = i18n( "Rect has no method %1" ).arg(mid);
+ TQString msg = i18n( "Rect has no method %1" ).arg(mid);
return throwError(exec, msg);
break;
}