1.1 --- a/misc.cpp Mon May 30 05:39:10 2005 +0000
1.2 +++ b/misc.cpp Sat Jul 23 10:26:29 2005 +0000
1.3 @@ -3,10 +3,14 @@
1.4
1.5 #include "misc.h"
1.6
1.7 +QString qpointToString (const QPoint &p)
1.8 +{
1.9 + return "(" + QString("%1").arg(p.x()) +","+ QString ("%1").arg (p.y()) +")";
1.10 +}
1.11
1.12 ostream &operator<< (ostream &stream, QPoint const &p)
1.13 {
1.14 - return (stream << "(" << p.x() << "," << p.y() << ")");
1.15 + return (stream << qpointToString(p) );
1.16 }
1.17
1.18 float getAngle(const QPoint &p)