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 /lib/kofficecore/tests/kopointtest.cpp | |
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 '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 ); |