diff options
Diffstat (limited to 'karbon/core/vsegment.cc')
-rw-r--r-- | karbon/core/vsegment.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/karbon/core/vsegment.cc b/karbon/core/vsegment.cc index 3f0a4590..d18baeba 100644 --- a/karbon/core/vsegment.cc +++ b/karbon/core/vsegment.cc @@ -19,7 +19,7 @@ #include <math.h> -#include <qdom.h> +#include <tqdom.h> #include "vpainter.h" #include "vpath.h" @@ -418,7 +418,7 @@ VSegment::lengthParam( double len ) const double lengthMid = length( paramMid ); - while( QABS( lengthMid - len ) / len > VGlobal::paramLengthTolerance ) + while( TQABS( lengthMid - len ) / len > VGlobal::paramLengthTolerance ) { if( lengthMid < len ) param1 = paramMid; @@ -584,7 +584,7 @@ kdDebug(38000) << newCurve.getLast()->p( i ).x() << " " kdDebug(38000) << endl; // Find roots. - QValueList<double> params; + TQValueList<double> params; newCurve.getLast()->rootParams( params ); @@ -601,7 +601,7 @@ kdDebug(38000) << endl; resultParam = 0.0; // Iterate over the found candidate params. - for( QValueListConstIterator<double> itr = params.begin(); itr != params.end(); ++itr ) + for( TQValueListConstIterator<double> itr = params.begin(); itr != params.end(); ++itr ) { pointDerivativesAt( *itr, &dist ); dist -= p; @@ -625,7 +625,7 @@ kdDebug(38000) << endl; } void -VSegment::rootParams( QValueList<double>& params ) const +VSegment::rootParams( TQValueList<double>& params ) const { if( !prev() ) { @@ -942,7 +942,7 @@ VSegment::height( ( p.y() - a.y() ) * ( p.y() - a.y() ) ); // Normalize. - return QABS( det ) / norm; + return TQABS( det ) / norm; } bool @@ -1061,7 +1061,7 @@ VSegment::next() const // TODO: remove this backward compatibility function after koffice 1.3.x void -VSegment::load( const QDomElement& element ) +VSegment::load( const TQDomElement& element ) { if( element.tagName() == "CURVE" ) { |