diff options
Diffstat (limited to 'karbon/shapes/vpolygon.cc')
-rw-r--r-- | karbon/shapes/vpolygon.cc | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/karbon/shapes/vpolygon.cc b/karbon/shapes/vpolygon.cc index aa74ca90..724b228f 100644 --- a/karbon/shapes/vpolygon.cc +++ b/karbon/shapes/vpolygon.cc @@ -18,7 +18,7 @@ */ -#include <qdom.h> +#include <tqdom.h> #include "vglobal.h" #include "vpolygon.h" @@ -30,14 +30,14 @@ #include <KoXmlNS.h> #include <vdocument.h> -VPolygon::VPolygon( VObject* parent, VState state ) - : VPath( parent, state ) +VPolygon::VPolygon( VObject* tqparent, VState state ) + : VPath( tqparent, state ) { } -VPolygon::VPolygon( VObject* parent, const QString &points, +VPolygon::VPolygon( VObject* tqparent, const TQString &points, const KoPoint& topLeft, double width, double height ) - : VPath( parent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_points( points ) + : VPath( tqparent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_points( points ) { init(); } @@ -47,13 +47,13 @@ VPolygon::init() { bool bFirst = true; - QString points = m_points.simplifyWhiteSpace(); - points.replace( ',', ' ' ); + TQString points = m_points.simplifyWhiteSpace(); + points.tqreplace( ',', ' ' ); points.remove( '\r' ); points.remove( '\n' ); - QStringList pointList = QStringList::split( ' ', points ); - QStringList::Iterator end(pointList.end()); - for( QStringList::Iterator it = pointList.begin(); it != end; ++it ) + TQStringList pointList = TQStringList::split( ' ', points ); + TQStringList::Iterator end(pointList.end()); + for( TQStringList::Iterator it = pointList.begin(); it != end; ++it ) { KoPoint point; point.setX( (*it).toDouble() ); @@ -68,7 +68,7 @@ VPolygon::init() } close(); - QWMatrix m; + TQWMatrix m; m.translate( m_topLeft.x(), m_topLeft.y() ); // only tranform the path data @@ -76,15 +76,15 @@ VPolygon::init() cmd.VVisitor::visitVPath( *this ); } -QString +TQString VPolygon::name() const { - QString result = VObject::name(); + TQString result = VObject::name(); return !result.isEmpty() ? result : i18n( "Polygon" ); } void -VPolygon::save( QDomElement& element ) const +VPolygon::save( TQDomElement& element ) const { VDocument *doc = document(); if( doc && doc->saveAsPath() ) @@ -95,7 +95,7 @@ VPolygon::save( QDomElement& element ) const if( state() != deleted ) { - QDomElement me = element.ownerDocument().createElement( "POLYGON" ); + TQDomElement me = element.ownerDocument().createElement( "POLYGON" ); element.appendChild( me ); // save fill/stroke untransformed @@ -108,12 +108,12 @@ VPolygon::save( QDomElement& element ) const me.setAttribute( "x", m_topLeft.x() ); me.setAttribute( "y", m_topLeft.y() ); - me.setAttribute( "width", QString("%1pt").arg( m_width ) ); - me.setAttribute( "height", QString("%1pt").arg( m_height ) ); + me.setAttribute( "width", TQString("%1pt").tqarg( m_width ) ); + me.setAttribute( "height", TQString("%1pt").tqarg( m_height ) ); me.setAttribute( "points", m_points ); - QString transform = buildSvgTransform(); + TQString transform = buildSvgTransform(); if( !transform.isEmpty() ) me.setAttribute( "transform", transform ); } @@ -136,11 +136,11 @@ VPolygon::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &mainSt } void -VPolygon::load( const QDomElement& element ) +VPolygon::load( const TQDomElement& element ) { setState( normal ); - QDomNodeList list = element.childNodes(); + TQDomNodeList list = element.childNodes(); for( uint i = 0; i < list.count(); ++i ) if( list.item( i ).isElement() ) VObject::load( list.item( i ).toElement() ); @@ -155,23 +155,23 @@ VPolygon::load( const QDomElement& element ) init(); - QString trafo = element.attribute( "transform" ); + TQString trafo = element.attribute( "transform" ); if( !trafo.isEmpty() ) transform( trafo ); } bool -VPolygon::loadOasis( const QDomElement &element, KoOasisLoadingContext &context ) +VPolygon::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context ) { setState( normal ); - m_points = element.attributeNS( KoXmlNS::draw, "points", QString::null ); + m_points = element.attributeNS( KoXmlNS::draw, "points", TQString() ); init(); - transformByViewbox( element, element.attributeNS( KoXmlNS::svg, "viewBox", QString::null ) ); + transformByViewbox( element, element.attributeNS( KoXmlNS::svg, "viewBox", TQString() ) ); - QString trafo = element.attributeNS( KoXmlNS::draw, "transform", QString::null ); + TQString trafo = element.attributeNS( KoXmlNS::draw, "transform", TQString() ); if( !trafo.isEmpty() ) transformOasis( trafo ); |