diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /karbon/shapes/vspiral.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karbon/shapes/vspiral.cc')
-rw-r--r-- | karbon/shapes/vspiral.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/karbon/shapes/vspiral.cc b/karbon/shapes/vspiral.cc index 8f6d17c2..cad37ccd 100644 --- a/karbon/shapes/vspiral.cc +++ b/karbon/shapes/vspiral.cc @@ -20,8 +20,8 @@ #include <math.h> -#include <qwmatrix.h> -#include <qdom.h> +#include <tqwmatrix.h> +#include <tqdom.h> #include "vglobal.h" #include "vspiral.h" @@ -30,15 +30,15 @@ #include <KoUnit.h> #include <vdocument.h> -VSpiral::VSpiral( VObject* parent, VState state ) - : VPath( parent, state ) +VSpiral::VSpiral( VObject* tqparent, VState state ) + : VPath( tqparent, state ) { } -VSpiral::VSpiral( VObject* parent, +VSpiral::VSpiral( VObject* tqparent, const KoPoint& center, double radius, uint segments, double fade, bool clockwise, double angle, VSpiralType type ) - : VPath( parent ), m_center( center), m_radius( radius ), m_fade( fade ), m_segments( segments ), m_clockwise( clockwise ), m_angle( angle ), m_type( type ) + : VPath( tqparent ), m_center( center), m_radius( radius ), m_fade( fade ), m_segments( segments ), m_clockwise( clockwise ), m_angle( angle ), m_type( type ) { init(); } @@ -86,7 +86,7 @@ VSpiral::init() } // translate path to center: - QWMatrix m; + TQWMatrix m; m.translate( m_center.x(), m_center.y() ); // sadly it's not feasible to simply add angle while creation. @@ -101,15 +101,15 @@ VSpiral::init() m_matrix.reset(); } -QString +TQString VSpiral::name() const { - QString result = VObject::name(); + TQString result = VObject::name(); return !result.isEmpty() ? result : i18n( "Spiral" ); } void -VSpiral::save( QDomElement& element ) const +VSpiral::save( TQDomElement& element ) const { VDocument *doc = document(); if( doc && doc->saveAsPath() ) @@ -120,7 +120,7 @@ VSpiral::save( QDomElement& element ) const if( state() != deleted ) { - QDomElement me = element.ownerDocument().createElement( "SPIRAL" ); + TQDomElement me = element.ownerDocument().createElement( "SPIRAL" ); element.appendChild( me ); // save fill/stroke untransformed @@ -143,18 +143,18 @@ VSpiral::save( QDomElement& element ) const me.setAttribute( "type", m_type ); - QString transform = buildSvgTransform(); + TQString transform = buildSvgTransform(); if( !transform.isEmpty() ) me.setAttribute( "transform", transform ); } } void -VSpiral::load( const QDomElement& element ) +VSpiral::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() ); @@ -174,7 +174,7 @@ VSpiral::load( const QDomElement& element ) init(); - QString trafo = element.attribute( "transform" ); + TQString trafo = element.attribute( "transform" ); if( !trafo.isEmpty() ) transform( trafo ); } |