summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/brush_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/brush_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/brush_imp.cpp')
-rw-r--r--kjsembed/bindings/brush_imp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kjsembed/bindings/brush_imp.cpp b/kjsembed/bindings/brush_imp.cpp
index 061dc1f4..c01a03a2 100644
--- a/kjsembed/bindings/brush_imp.cpp
+++ b/kjsembed/bindings/brush_imp.cpp
@@ -22,8 +22,8 @@
#include <kjsembed/global.h>
#include <kjsembed/jsvalueproxy.h>
#include <kjsembed/jsbinding.h>
-#include <qvariant.h>
-#include <qbrush.h>
+#include <tqvariant.h>
+#include <tqbrush.h>
#include "brush_imp.h"
@@ -41,7 +41,7 @@ BrushImp::~BrushImp()
void BrushImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "QBrush") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQBrush") ) return;
JSProxy::MethodTable methods[] = {
{ Methodstyle, "style"},
@@ -80,9 +80,9 @@ void BrushImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
KJS::Value BrushImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "QBrush") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQBrush") ) return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
- QBrush brush = op->toVariant().toBrush();
+ TQBrush brush = op->toVariant().toBrush();
KJS::Value retValue = KJS::Value();
switch ( mid ) {
@@ -104,7 +104,7 @@ KJS::Value BrushImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
}
case MethodsetColor:
{
- QColor color = extractQColor(exec, args, 0);
+ TQColor color = extractQColor(exec, args, 0);
brush.setColor(color);
break;
}