diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /libkdegames/kgrid2d.h | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdegames/kgrid2d.h')
-rw-r--r-- | libkdegames/kgrid2d.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkdegames/kgrid2d.h b/libkdegames/kgrid2d.h index f9dfd8dd..22a3c19d 100644 --- a/libkdegames/kgrid2d.h +++ b/libkdegames/kgrid2d.h @@ -22,9 +22,9 @@ #include <math.h> -#include <qpair.h> -#include <qvaluelist.h> -#include <qvaluevector.h> +#include <tqpair.h> +#include <tqvaluelist.h> +#include <tqvaluevector.h> #include <kglobal.h> @@ -42,7 +42,7 @@ namespace KGrid2D * This type represents a list of @ref Coord. * @since 3.2 */ - typedef QValueList<Coord> CoordList; + typedef TQValueList<Coord> CoordList; } inline KGrid2D::Coord @@ -72,11 +72,11 @@ minimum(const KGrid2D::Coord &c1, const KGrid2D::Coord &c2) { return KGrid2D::Coord(kMin(c1.first, c2.first), kMin(c1.second, c2.second)); } -inline QTextStream &operator <<(QTextStream &s, const KGrid2D::Coord &c) { +inline TQTextStream &operator <<(TQTextStream &s, const KGrid2D::Coord &c) { return s << '(' << c.second << ", " << c.first << ')'; } -inline QTextStream &operator <<(QTextStream &s, const KGrid2D::CoordList &list) +inline TQTextStream &operator <<(TQTextStream &s, const KGrid2D::CoordList &list) { for(KGrid2D::CoordList::const_iterator i=list.begin(); i!=list.end(); ++i) s << *i; @@ -200,19 +200,19 @@ class Generic protected: uint _width, _height; - QValueVector<Type> _vector; + TQValueVector<Type> _vector; }; } template <class Type> -QDataStream &operator <<(QDataStream &s, const KGrid2D::Generic<Type> &m) { +TQDataStream &operator <<(TQDataStream &s, const KGrid2D::Generic<Type> &m) { s << (Q_UINT32)m.width() << (Q_UINT32)m.height(); for (uint i=0; i<m.size(); i++) s << m[i]; return s; } template <class Type> -QDataStream &operator >>(QDataStream &s, KGrid2D::Generic<Type> &m) { +TQDataStream &operator >>(TQDataStream &s, KGrid2D::Generic<Type> &m) { Q_UINT32 w, h; s >> w >> h; m.resize(w, h); |