summaryrefslogtreecommitdiffstats
path: root/kig/misc/coordinate.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kig/misc/coordinate.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/misc/coordinate.cpp')
-rw-r--r--kig/misc/coordinate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kig/misc/coordinate.cpp b/kig/misc/coordinate.cpp
index f2c272f2..86cf8eab 100644
--- a/kig/misc/coordinate.cpp
+++ b/kig/misc/coordinate.cpp
@@ -25,7 +25,7 @@
using namespace std;
-Coordinate Coordinate::fromQPoint( const TQPoint& p )
+Coordinate Coordinate::fromTQPoint( const TQPoint& p )
{
return Coordinate( p.x(), p.y() );
}
@@ -159,10 +159,10 @@ const Coordinate Coordinate::normalize( double l ) const
const Coordinate Coordinate::round() const
{
- return Coordinate( qRound( x ), qRound( y ) );
+ return Coordinate( tqRound( x ), tqRound( y ) );
}
-TQPoint Coordinate::toQPoint() const
+TQPoint Coordinate::toTQPoint() const
{
Coordinate t = round();
return TQPoint( (int) t.x, (int) t.y );