summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/image_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings/image_imp.cpp')
-rw-r--r--kjsembed/bindings/image_imp.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kjsembed/bindings/image_imp.cpp b/kjsembed/bindings/image_imp.cpp
index 65dd10eb..8c79e946 100644
--- a/kjsembed/bindings/image_imp.cpp
+++ b/kjsembed/bindings/image_imp.cpp
@@ -43,7 +43,7 @@ ImageImp::~ImageImp()
void ImageImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQImage") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQImage") ) return;
JSProxy::MethodTable methods[] = {
{ Methodwidth, "width" },
@@ -68,7 +68,7 @@ void ImageImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
}
KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQImage") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQImage") ) return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
img = op->toVariant().toImage();
@@ -99,18 +99,18 @@ KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
}
case Methodload: {
- TQString arg0 = extractQString( exec, args, 0);
+ TTQString arg0 = extractTQString( exec, args, 0);
retValue = KJS::Boolean( load( arg0 ));
break;
}
case Methodsave: {
- TQString arg0 = extractQString( exec, args, 0);
- TQString arg1 = extractQString( exec, args, 1);
+ TTQString arg0 = extractTQString( exec, args, 0);
+ TTQString arg1 = extractTQString( exec, args, 1);
retValue = KJS::Boolean( save( arg0, arg1 ));
break;
}
case MethodsetFormat: {
- TQString arg0 = extractQString( exec, args, 0);
+ TTQString arg0 = extractTQString( exec, args, 0);
setFormat( arg0 );
break;
}
@@ -127,7 +127,7 @@ KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
break;
}
case MethodsetPixmap: {
- TQPixmap pix = extractQPixmap(exec, args, 0);
+ TTQPixmap pix = extractTQPixmap(exec, args, 0);
setPixmap(pix);
break;
}
@@ -184,50 +184,50 @@ bool ImageImp::isOk() const {
return !img.isNull();
}
-TQPixmap ImageImp::pixmap() const {
+TTQPixmap ImageImp::pixmap() const {
if ( img.isNull() )
- return TQPixmap();
+ return TTQPixmap();
- TQPixmap pix;
+ TTQPixmap pix;
pix.convertFromImage( img );
return pix;
}
-void ImageImp::setPixmap( const TQPixmap &pix ) {
+void ImageImp::setPixmap( const TTQPixmap &pix ) {
if ( img.isNull() )
- img = TQImage();
+ img = TTQImage();
img = pix.convertToImage();
}
-TQString ImageImp::format() const {
+TTQString ImageImp::format() const {
return fmt;
}
-TQString ImageImp::filename() const {
+TTQString ImageImp::filename() const {
return nm;
}
-void ImageImp::setFormat( const TQString &f ) {
+void ImageImp::setFormat( const TTQString &f ) {
fmt = f;
}
-bool ImageImp::load( const TQString &filename ) {
+bool ImageImp::load( const TTQString &filename ) {
if ( !img.isNull() )
- img = TQImage();
+ img = TTQImage();
nm = filename;
- fmt = TQImageIO::imageFormat( filename );
+ fmt = TTQImageIO::imageFormat( filename );
bool ok = img.load( filename );
if ( !ok ) {
kdWarning() << "Error loading " << filename << endl;
- img = TQImage();
+ img = TTQImage();
}
return ok;
}
-bool ImageImp::save( const TQString &filename, const TQString &fmt ) {
+bool ImageImp::save( const TTQString &filename, const TTQString &fmt ) {
if ( img.isNull() ) {
kdWarning() << "Attempt to save a null image to '" << filename << "'" << endl;
@@ -250,7 +250,7 @@ void ImageImp::smoothScale( int w, int h ) {
void ImageImp::smoothScaleMin( int w, int h ) {
if ( img.isNull())
return;
- img = img.smoothScale( w, h, TQImage::ScaleMin );
+ img = img.smoothScale( w, h, TTQImage::ScaleMin );
}