summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/pixmap_imp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/bindings/pixmap_imp.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/bindings/pixmap_imp.cpp')
-rw-r--r--kjsembed/bindings/pixmap_imp.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kjsembed/bindings/pixmap_imp.cpp b/kjsembed/bindings/pixmap_imp.cpp
index def51e3e..50396d3a 100644
--- a/kjsembed/bindings/pixmap_imp.cpp
+++ b/kjsembed/bindings/pixmap_imp.cpp
@@ -43,7 +43,7 @@ Pixmap::~Pixmap()
void Pixmap::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType( object, JSProxy::ValueProxy, "TQPixmap") )
+ if( !JSProxy::checkType( object, JSProxy::ValueProxy, "TTQPixmap") )
return;
JSProxy::MethodTable methods[] = {
@@ -68,7 +68,7 @@ void Pixmap::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
KJS::Value Pixmap::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType( self, JSProxy::ValueProxy, "TQPixmap") )
+ if( !JSProxy::checkType( self, JSProxy::ValueProxy, "TTQPixmap") )
return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
@@ -99,11 +99,11 @@ KJS::Value Pixmap::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Lis
if( args.size() == 2)
resize(extractInt(exec, args, 0), extractInt(exec, args, 1));
else if( args.size() == 1)
- resize(extractQSize(exec, args, 0) );
+ resize(extractTQSize(exec, args, 0) );
break;
}
case Methodfill:
- fill( extractQColor(exec, args, 0));
+ fill( extractTQColor(exec, args, 0));
break;
case Methodmask:
{
@@ -112,7 +112,7 @@ KJS::Value Pixmap::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Lis
}
case MethodsetMask:
{
- setMask(extractQPixmap(exec, args, 0));
+ setMask(extractTQPixmap(exec, args, 0));
break;
}
case MethodcreateHeuristicMask:
@@ -144,35 +144,35 @@ void Pixmap::resize( int w, int h )
pix.resize( w, h );
}
-void Pixmap::resize( const TQSize &size )
+void Pixmap::resize( const TTQSize &size )
{
pix.resize( size );
}
-void Pixmap::fill( const TQColor &c )
+void Pixmap::fill( const TTQColor &c )
{
pix.fill( c );
}
void Pixmap::grabWindow(int winID, int x, int y, int w, int h)
{
- pix = TQPixmap::grabWindow((WId)winID, x, y, w, h);
+ pix = TTQPixmap::grabWindow((WId)winID, x, y, w, h);
}
-TQPixmap Pixmap::mask()
+TTQPixmap Pixmap::mask()
{
return *(pix.mask());
}
-void Pixmap::setMask(const TQPixmap& mask)
+void Pixmap::setMask(const TTQPixmap& mask)
{
- TQBitmap bm;
+ TTQBitmap bm;
bm = mask;
pix.setMask(bm);
}
-TQPixmap Pixmap::createHeuristicMask ( bool clipTight )
+TTQPixmap Pixmap::createHeuristicMask ( bool clipTight )
{
- return (TQPixmap)pix.createHeuristicMask(clipTight);
+ return (TTQPixmap)pix.createHeuristicMask(clipTight);
}
} // namespace KJSEmbed::Bindings