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/core/vsegment.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/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" ) { |