summaryrefslogtreecommitdiffstats
path: root/karbon/shapes/vrectangle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/shapes/vrectangle.cc')
-rw-r--r--karbon/shapes/vrectangle.cc50
1 files changed, 25 insertions, 25 deletions
diff --git a/karbon/shapes/vrectangle.cc b/karbon/shapes/vrectangle.cc
index 966c2bb2..01d1d243 100644
--- a/karbon/shapes/vrectangle.cc
+++ b/karbon/shapes/vrectangle.cc
@@ -24,20 +24,20 @@
#include <KoStore.h>
#include <KoXmlWriter.h>
#include <KoXmlNS.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <kdebug.h>
#include "vglobal.h"
#include <vdocument.h>
#include "vtransformcmd.h"
-VRectangle::VRectangle( VObject* parent, VState state )
- : VPath( parent, state )
+VRectangle::VRectangle( VObject* tqparent, VState state )
+ : VPath( tqparent, state )
{
}
-VRectangle::VRectangle( VObject* parent,
+VRectangle::VRectangle( VObject* tqparent,
const KoPoint& topLeft, double width, double height, double rx, double ry )
- : VPath( parent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_rx( rx ), m_ry( ry )
+ : VPath( tqparent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_rx( rx ), m_ry( ry )
{
setDrawCenterNode();
@@ -93,15 +93,15 @@ VRectangle::init()
close();
}
-QString
+TQString
VRectangle::name() const
{
- QString result = VObject::name();
+ TQString result = VObject::name();
return !result.isEmpty() ? result : i18n( "Rectangle" );
}
void
-VRectangle::save( QDomElement& element ) const
+VRectangle::save( TQDomElement& element ) const
{
VDocument *doc = document();
if( doc && doc->saveAsPath() )
@@ -112,7 +112,7 @@ VRectangle::save( QDomElement& element ) const
if( state() != deleted )
{
- QDomElement me = element.ownerDocument().createElement( "RECT" );
+ TQDomElement me = element.ownerDocument().createElement( "RECT" );
element.appendChild( me );
// save fill/stroke untransformed
@@ -125,13 +125,13 @@ VRectangle::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( "rx", m_rx );
me.setAttribute( "ry", m_ry );
- QString transform = buildSvgTransform();
+ TQString transform = buildSvgTransform();
if( !transform.isEmpty() )
me.setAttribute( "transform", transform );
}
@@ -161,11 +161,11 @@ VRectangle::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &main
VObject::saveOasis( store, docWriter, mainStyles, index );
- QWMatrix tmpMat;
+ TQWMatrix tmpMat;
tmpMat.scale( 1, -1 );
tmpMat.translate( 0, -document()->height() );
- QString transform = buildOasisTransform( m_matrix*tmpMat );
+ TQString transform = buildOasisTransform( m_matrix*tmpMat );
if( !transform.isEmpty() )
docWriter->addAttribute( "draw:transform", transform );
@@ -173,23 +173,23 @@ VRectangle::saveOasis( KoStore *store, KoXmlWriter *docWriter, KoGenStyles &main
}
bool
-VRectangle::loadOasis( const QDomElement &element, KoOasisLoadingContext &context )
+VRectangle::loadOasis( const TQDomElement &element, KoOasisLoadingContext &context )
{
setState( normal );
- m_width = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "width", QString::null ), 10.0 );
- m_height = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "height", QString::null ), 10.0 );
+ m_width = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "width", TQString() ), 10.0 );
+ m_height = KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "height", TQString() ), 10.0 );
- m_topLeft.setX( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x", QString::null ) ) );
- m_topLeft.setY( m_height + KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y", QString::null ) ) );
+ m_topLeft.setX( KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "x", TQString() ) ) );
+ m_topLeft.setY( m_height + KoUnit::parseValue( element.attributeNS( KoXmlNS::svg, "y", TQString() ) ) );
- m_rx = m_ry = KoUnit::parseValue( element.attributeNS( KoXmlNS::draw, "corner-radius", QString::null ) );
+ m_rx = m_ry = KoUnit::parseValue( element.attributeNS( KoXmlNS::draw, "corner-radius", 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 );
@@ -197,11 +197,11 @@ VRectangle::loadOasis( const QDomElement &element, KoOasisLoadingContext &contex
}
void
-VRectangle::load( const QDomElement& element )
+VRectangle::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() );
@@ -217,7 +217,7 @@ VRectangle::load( const QDomElement& element )
init();
- QString trafo = element.attribute( "transform" );
+ TQString trafo = element.attribute( "transform" );
if( !trafo.isEmpty() )
transform( trafo );
}