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 /krita/core/kis_point.h | |
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 'krita/core/kis_point.h')
-rw-r--r-- | krita/core/kis_point.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/krita/core/kis_point.h b/krita/core/kis_point.h index ee5dba78..3c576cb5 100644 --- a/krita/core/kis_point.h +++ b/krita/core/kis_point.h @@ -18,7 +18,7 @@ #ifndef KIS_POINT_H_ #define KIS_POINT_H_ -#include <qvaluevector.h> +#include <tqvaluevector.h> #include <KoPoint.h> /** @@ -30,19 +30,19 @@ class KisPoint : public KoPoint { public: KisPoint() {} KisPoint(double x, double y) : super(x, y) {} - KisPoint(const QPoint& pt) : super(pt) {} + KisPoint(const TQPoint& pt) : super(pt) {} KisPoint(const KoPoint& pt) : super(pt) {} int floorX() const { return static_cast<int>(x()); } int floorY() const { return static_cast<int>(y()); } - int roundX() const { return qRound(x()); } - int roundY() const { return qRound(y()); } + int roundX() const { return tqRound(x()); } + int roundY() const { return tqRound(y()); } - QPoint floorQPoint() const { return QPoint(static_cast<int>(x()), static_cast<int>(y())); } - QPoint roundQPoint() const { return QPoint(qRound(x()), qRound(y())); } + TQPoint floorTQPoint() const { return TQPoint(static_cast<int>(x()), static_cast<int>(y())); } + TQPoint roundTQPoint() const { return TQPoint(tqRound(x()), tqRound(y())); } }; -typedef QValueVector<KisPoint> vKisPoint; +typedef TQValueVector<KisPoint> vKisPoint; #endif // KIS_POINT_H_ |