From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- lib/kofficecore/tests/kopointtest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/kofficecore/tests/kopointtest.cpp') 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 #include -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 ); -- cgit v1.2.1