summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgrid2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgrid2d.h')
-rw-r--r--libkdegames/kgrid2d.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libkdegames/kgrid2d.h b/libkdegames/kgrid2d.h
index 22a3c19d..833db8ec 100644
--- a/libkdegames/kgrid2d.h
+++ b/libkdegames/kgrid2d.h
@@ -36,7 +36,7 @@ namespace KGrid2D
* This type represents coordinates on a bidimensionnal grid.
* @since 3.2
*/
- typedef QPair<int, int> Coord;
+ typedef TQPair<int, int> Coord;
/**
* This type represents a list of @ref Coord.
@@ -206,14 +206,14 @@ class Generic
template <class Type>
TQDataStream &operator <<(TQDataStream &s, const KGrid2D::Generic<Type> &m) {
- s << (Q_UINT32)m.width() << (Q_UINT32)m.height();
+ s << (TQ_UINT32)m.width() << (TQ_UINT32)m.height();
for (uint i=0; i<m.size(); i++) s << m[i];
return s;
}
template <class Type>
TQDataStream &operator >>(TQDataStream &s, KGrid2D::Generic<Type> &m) {
- Q_UINT32 w, h;
+ TQ_UINT32 w, h;
s >> w >> h;
m.resize(w, h);
for (uint i=0; i<m.size(); i++) s >> m[i];
@@ -498,9 +498,9 @@ class Hexagonal : public Generic<Type>, public HexagonalBase
CoordList n = neighbours(*it, insideOnly);
CoordList::const_iterator it2;
for (it2=n.begin(); it2!=n.end(); ++it2)
- if ( center.find(*it2)==center.end()
- && ring.find(*it2)==ring.end()
- && newRing.find(*it2)==newRing.end() )
+ if ( center.tqfind(*it2)==center.end()
+ && ring.tqfind(*it2)==ring.end()
+ && newRing.tqfind(*it2)==newRing.end() )
newRing.append(*it2);
center.append(*it);
}