diff options
Diffstat (limited to 'kjsembed/bindings/pixmap_imp.cpp')
-rw-r--r-- | kjsembed/bindings/pixmap_imp.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kjsembed/bindings/pixmap_imp.cpp b/kjsembed/bindings/pixmap_imp.cpp index 68e93658..def51e3e 100644 --- a/kjsembed/bindings/pixmap_imp.cpp +++ b/kjsembed/bindings/pixmap_imp.cpp @@ -19,13 +19,13 @@ * Boston, MA 02110-1301, USA. */ -#include <qpixmap.h> -#include <qbitmap.h> +#include <tqpixmap.h> +#include <tqbitmap.h> #include <kjsembed/global.h> #include <kjsembed/jsvalueproxy.h> #include <kjsembed/jsbinding.h> -#include <qvariant.h> +#include <tqvariant.h> #include "pixmap_imp.h" @@ -43,7 +43,7 @@ Pixmap::~Pixmap() void Pixmap::addBindings( KJS::ExecState *exec, KJS::Object &object ) { - if( !JSProxy::checkType( object, JSProxy::ValueProxy, "QPixmap") ) + if( !JSProxy::checkType( object, JSProxy::ValueProxy, "TQPixmap") ) 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, "QPixmap") ) + if( !JSProxy::checkType( self, JSProxy::ValueProxy, "TQPixmap") ) return KJS::Value(); JSValueProxy *op = JSProxy::toValueProxy( self.imp() ); @@ -144,35 +144,35 @@ void Pixmap::resize( int w, int h ) pix.resize( w, h ); } -void Pixmap::resize( const QSize &size ) +void Pixmap::resize( const TQSize &size ) { pix.resize( size ); } -void Pixmap::fill( const QColor &c ) +void Pixmap::fill( const TQColor &c ) { pix.fill( c ); } void Pixmap::grabWindow(int winID, int x, int y, int w, int h) { - pix = QPixmap::grabWindow((WId)winID, x, y, w, h); + pix = TQPixmap::grabWindow((WId)winID, x, y, w, h); } -QPixmap Pixmap::mask() +TQPixmap Pixmap::mask() { return *(pix.mask()); } -void Pixmap::setMask(const QPixmap& mask) +void Pixmap::setMask(const TQPixmap& mask) { - QBitmap bm; + TQBitmap bm; bm = mask; pix.setMask(bm); } -QPixmap Pixmap::createHeuristicMask ( bool clipTight ) +TQPixmap Pixmap::createHeuristicMask ( bool clipTight ) { - return (QPixmap)pix.createHeuristicMask(clipTight); + return (TQPixmap)pix.createHeuristicMask(clipTight); } } // namespace KJSEmbed::Bindings |