diff options
Diffstat (limited to 'karbon/shapes/vstar.cc')
-rw-r--r-- | karbon/shapes/vstar.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/karbon/shapes/vstar.cc b/karbon/shapes/vstar.cc index 98391272..11f8ef86 100644 --- a/karbon/shapes/vstar.cc +++ b/karbon/shapes/vstar.cc @@ -20,8 +20,8 @@ #include <math.h> -#include <qwmatrix.h> -#include <qdom.h> +#include <tqwmatrix.h> +#include <tqdom.h> #include "vglobal.h" #include "vstar.h" @@ -30,15 +30,15 @@ #include <KoUnit.h> #include <vdocument.h> -VStar::VStar( VObject* parent, VState state ) - : VPath( parent, state ) +VStar::VStar( VObject* tqparent, VState state ) + : VPath( tqparent, state ) { } -VStar::VStar( VObject* parent, +VStar::VStar( VObject* tqparent, const KoPoint& center, double outerRadius, double innerRadius, uint edges, double angle, uint innerAngle, double roundness, VStarType type ) - : VPath( parent ), m_center( center), m_outerRadius( outerRadius ), m_innerRadius( innerRadius), m_edges( edges ), m_angle( angle ), m_innerAngle( innerAngle ), m_roundness( roundness ), m_type( type ) + : VPath( tqparent ), m_center( center), m_outerRadius( outerRadius ), m_innerRadius( innerRadius), m_edges( edges ), m_angle( angle ), m_innerAngle( innerAngle ), m_roundness( roundness ), m_type( type ) { init(); } @@ -220,7 +220,7 @@ VStar::init() close(); // translate path to center: - QWMatrix m; + TQWMatrix m; m.translate( m_center.x(), m_center.y() ); // only tranform the path data @@ -261,15 +261,15 @@ VStar::getOptimalInnerRadius( uint edges, double outerRadius, uint /*innerAngle* return sqrt( x * x + y * y ); } -QString +TQString VStar::name() const { - QString result = VObject::name(); + TQString result = VObject::name(); return !result.isEmpty() ? result : i18n( "Star" ); } void -VStar::save( QDomElement& element ) const +VStar::save( TQDomElement& element ) const { VDocument *doc = document(); if( doc && doc->saveAsPath() ) @@ -280,7 +280,7 @@ VStar::save( QDomElement& element ) const if( state() != deleted ) { - QDomElement me = element.ownerDocument().createElement( "STAR" ); + TQDomElement me = element.ownerDocument().createElement( "STAR" ); element.appendChild( me ); // save fill/stroke untransformed @@ -304,18 +304,18 @@ VStar::save( QDomElement& element ) const me.setAttribute( "type", m_type ); - QString transform = buildSvgTransform(); + TQString transform = buildSvgTransform(); if( !transform.isEmpty() ) me.setAttribute( "transform", transform ); } } void -VStar::load( const QDomElement& element ) +VStar::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() ); @@ -336,7 +336,7 @@ VStar::load( const QDomElement& element ) init(); - QString trafo = element.attribute( "transform" ); + TQString trafo = element.attribute( "transform" ); if( !trafo.isEmpty() ) transform( trafo ); } |