summaryrefslogtreecommitdiffstats
path: root/karbon/shapes/vsinus.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/shapes/vsinus.cc')
-rw-r--r--karbon/shapes/vsinus.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/karbon/shapes/vsinus.cc b/karbon/shapes/vsinus.cc
index a6c9ec4f..6c546135 100644
--- a/karbon/shapes/vsinus.cc
+++ b/karbon/shapes/vsinus.cc
@@ -18,24 +18,24 @@
*/
-#include <qwmatrix.h>
+#include <tqwmatrix.h>
#include "vglobal.h"
#include "vsinus.h"
#include "vtransformcmd.h"
#include <klocale.h>
#include <KoUnit.h>
-#include <qdom.h>
+#include <tqdom.h>
#include <vdocument.h>
-VSinus::VSinus( VObject* parent, VState state )
- : VPath( parent, state )
+VSinus::VSinus( VObject* tqparent, VState state )
+ : VPath( tqparent, state )
{
}
-VSinus::VSinus( VObject* parent,
+VSinus::VSinus( VObject* tqparent,
const KoPoint& topLeft, double width, double height, uint periods )
- : VPath( parent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_periods( periods )
+ : VPath( tqparent ), m_topLeft( topLeft ), m_width( width), m_height( height ), m_periods( periods )
{
// We want at least 1 period:
if( m_periods < 1 )
@@ -119,7 +119,7 @@ VSinus::init()
}
// Translate and scale:
- QWMatrix m;
+ TQWMatrix m;
m.translate( m_topLeft.x(), m_topLeft.y() - m_height * 0.5 );
m.scale( m_width / m_periods, m_height * 0.5 );
@@ -130,15 +130,15 @@ VSinus::init()
m_matrix.reset();
}
-QString
+TQString
VSinus::name() const
{
- QString result = VObject::name();
+ TQString result = VObject::name();
return !result.isEmpty() ? result : i18n( "Sinus" );
}
void
-VSinus::save( QDomElement& element ) const
+VSinus::save( TQDomElement& element ) const
{
VDocument *doc = document();
if( doc && doc->saveAsPath() )
@@ -149,7 +149,7 @@ VSinus::save( QDomElement& element ) const
if( state() != deleted )
{
- QDomElement me = element.ownerDocument().createElement( "SINUS" );
+ TQDomElement me = element.ownerDocument().createElement( "SINUS" );
element.appendChild( me );
// save fill/stroke untransformed
@@ -167,18 +167,18 @@ VSinus::save( QDomElement& element ) const
me.setAttribute( "periods", m_periods );
- QString transform = buildSvgTransform();
+ TQString transform = buildSvgTransform();
if( !transform.isEmpty() )
me.setAttribute( "transform", transform );
}
}
void
-VSinus::load( const QDomElement& element )
+VSinus::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() );
@@ -193,7 +193,7 @@ VSinus::load( const QDomElement& element )
init();
- QString trafo = element.attribute( "transform" );
+ TQString trafo = element.attribute( "transform" );
if( !trafo.isEmpty() )
transform( trafo );
}