diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/misc/coordinate.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/misc/coordinate.cpp')
-rw-r--r-- | kig/misc/coordinate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kig/misc/coordinate.cpp b/kig/misc/coordinate.cpp index 13501bc9..f2c272f2 100644 --- a/kig/misc/coordinate.cpp +++ b/kig/misc/coordinate.cpp @@ -17,7 +17,7 @@ #include "coordinate.h" -#include <qglobal.h> +#include <tqglobal.h> #include <cmath> #include <kdebug.h> @@ -25,7 +25,7 @@ using namespace std; -Coordinate Coordinate::fromQPoint( const QPoint& p ) +Coordinate Coordinate::fromQPoint( const TQPoint& p ) { return Coordinate( p.x(), p.y() ); } @@ -162,10 +162,10 @@ const Coordinate Coordinate::round() const return Coordinate( qRound( x ), qRound( y ) ); } -QPoint Coordinate::toQPoint() const +TQPoint Coordinate::toQPoint() const { Coordinate t = round(); - return QPoint( (int) t.x, (int) t.y ); + return TQPoint( (int) t.x, (int) t.y ); } Coordinate Coordinate::invalidCoord() |