From 576eb4299a00bc053db35414406f46372a0f70f2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:42:31 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdegames/kgrid2d.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libkdegames/kgrid2d.h') 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 -#include -#include -#include +#include +#include +#include #include @@ -42,7 +42,7 @@ namespace KGrid2D * This type represents a list of @ref Coord. * @since 3.2 */ - typedef QValueList CoordList; + typedef TQValueList 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 _vector; + TQValueVector _vector; }; } template -QDataStream &operator <<(QDataStream &s, const KGrid2D::Generic &m) { +TQDataStream &operator <<(TQDataStream &s, const KGrid2D::Generic &m) { s << (Q_UINT32)m.width() << (Q_UINT32)m.height(); for (uint i=0; i -QDataStream &operator >>(QDataStream &s, KGrid2D::Generic &m) { +TQDataStream &operator >>(TQDataStream &s, KGrid2D::Generic &m) { Q_UINT32 w, h; s >> w >> h; m.resize(w, h); -- cgit v1.2.1