diff options
Diffstat (limited to 'lib/kofficecore/tests/kopointtest.cpp')
-rw-r--r-- | lib/kofficecore/tests/kopointtest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kofficecore/tests/kopointtest.cpp b/lib/kofficecore/tests/kopointtest.cpp index 25286a5d..bf2ff843 100644 --- a/lib/kofficecore/tests/kopointtest.cpp +++ b/lib/kofficecore/tests/kopointtest.cpp @@ -4,7 +4,7 @@ #include <stdlib.h> #include <math.h> -bool check( QString txt, bool res, bool expected ) +bool check( TQString txt, bool res, bool expected ) { if ( res == expected ) { kdDebug() << txt << " : checking '" << res << "' against expected value '" << expected << "'... " << "ok" << endl; @@ -15,7 +15,7 @@ bool check( QString txt, bool res, bool expected ) return true; } -bool check( QString txt, double res, double expected ) +bool check( TQString txt, double res, double expected ) { if ( kAbs(res - expected) < 0.000001 ) { kdDebug() << txt << " : checking '" << res << "' against expected value '" << expected << "'... " << "ok" << endl; @@ -39,9 +39,9 @@ int main() check( "KoPoint::setX()", p1.x(), 2.1 ); check( "KoPoint::setY()", p1.y(), 3.2 ); - KoPoint p2( QPoint( -30, -40 ) ); - check( "KoPoint(const QPoint&)", p2.x(), -30.0 ); - check( "KoPoint(const QPoint&)", p2.y(), -40.0 ); + KoPoint p2( TQPoint( -30, -40 ) ); + check( "KoPoint(const TQPoint&)", p2.x(), -30.0 ); + check( "KoPoint(const TQPoint&)", p2.y(), -40.0 ); p2.rx() = 1.5; p2.ry() = 2.5; check( "KoPoint::rx()", p2.x(), 1.5 ); |