diff options
Diffstat (limited to 'karbon/core/vpattern.cc')
-rw-r--r-- | karbon/core/vpattern.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/karbon/core/vpattern.cc b/karbon/core/vpattern.cc index 9929a1b9..3a9c181f 100644 --- a/karbon/core/vpattern.cc +++ b/karbon/core/vpattern.cc @@ -17,10 +17,10 @@ * Boston, MA 02110-1301, USA. */ -#include <qdom.h> +#include <tqdom.h> #include "vpattern.h" -#include <qpixmap.h> +#include <tqpixmap.h> #define THUMB_SIZE 30 VPattern::VPattern() @@ -29,13 +29,13 @@ VPattern::VPattern() validThumb = false; } -VPattern::VPattern( const QString &tilename ) +VPattern::VPattern( const TQString &tilename ) { load( tilename ); } void -VPattern::load( const QString &tilename ) +VPattern::load( const TQString &tilename ) { m_tilename = tilename; bool ok = m_image.load( tilename ); @@ -47,7 +47,7 @@ VPattern::load( const QString &tilename ) } m_image = m_image.convertDepth( 32 ); - m_pixmap.convertFromImage(m_image, QPixmap::AutoColor); + m_pixmap.convertFromImage(m_image, TQPixmap::AutoColor); if( m_image.width() > THUMB_SIZE || m_image.height() > THUMB_SIZE ) { int xsize = THUMB_SIZE; @@ -67,7 +67,7 @@ VPattern::load( const QString &tilename ) if(xsize > 30) xsize = 30; } - QImage thumbImg = m_image.smoothScale( xsize, ysize ); + TQImage thumbImg = m_image.smoothScale( xsize, ysize ); m_pixmapThumb.convertFromImage( thumbImg ); validThumb = true; } @@ -93,9 +93,9 @@ VPattern::tileHeight() const } void -VPattern::save( QDomElement& element ) const +VPattern::save( TQDomElement& element ) const { - QDomElement me = element.ownerDocument().createElement( "PATTERN" ); + TQDomElement me = element.ownerDocument().createElement( "PATTERN" ); me.setAttribute( "originX", m_origin.x() ); me.setAttribute( "originY", m_origin.y() ); @@ -108,7 +108,7 @@ VPattern::save( QDomElement& element ) const } void -VPattern::load( const QDomElement& element ) +VPattern::load( const TQDomElement& element ) { m_origin.setX( element.attribute( "originX", "0.0" ).toDouble() ); m_origin.setY( element.attribute( "originY", "0.0" ).toDouble() ); @@ -120,20 +120,20 @@ VPattern::load( const QDomElement& element ) } void -VPattern::transform( const QWMatrix &m ) +VPattern::transform( const TQWMatrix &m ) { m_origin = m_origin.transform( m ); m_vector = m_vector.transform( m ); } -QPixmap& VPattern::pixmap() const +TQPixmap& VPattern::pixmap() const { - return (QPixmap&)m_pixmap; + return (TQPixmap&)m_pixmap; } -QPixmap& VPattern::thumbPixmap() const +TQPixmap& VPattern::thumbPixmap() const { - return (QPixmap&)m_pixmapThumb; + return (TQPixmap&)m_pixmapThumb; } |