src/gui/painting/qpolygon.cpp File Reference

#include "qpolygon.h"
#include "qrect.h"
#include "qdatastream.h"
#include "qmatrix.h"
#include "qdebug.h"
#include "qpainterpath.h"
#include "qvariant.h"
#include "qpainterpath_p.h"
#include "qbezier_p.h"
#include <stdarg.h>

Include dependency graph for qpolygon.cpp:

Go to the source code of this file.

Functions

QDebug operator<< (QDebug dbg, const QPolygon &a)
QDataStreamoperator<< (QDataStream &s, const QPolygonF &a)
QDataStreamoperator>> (QDataStream &s, QPolygonF &a)
QDebug operator<< (QDebug dbg, const QPolygonF &a)


Function Documentation

QDebug operator<< ( QDebug  dbg,
const QPolygonF a 
)

Definition at line 673 of file qpolygon.cpp.

00674 {
00675 #ifndef Q_BROKEN_DEBUG_STREAM
00676     dbg.nospace() << "QPolygonF(";
00677     for (int i = 0; i < a.count(); ++i)
00678         dbg.nospace() << a.at(i);
00679     dbg.nospace() << ')';
00680     return dbg.space();
00681 #else
00682     qWarning("This compiler doesn't support streaming QPolygonF to QDebug");
00683     return dbg;
00684     Q_UNUSED(a);
00685 #endif
00686 }

QDataStream& operator<< ( QDataStream s,
const QPolygonF a 
) [related]

Definition at line 635 of file qpolygon.cpp.

00636 {
00637     quint32 len = a.size();
00638     uint i;
00639 
00640     s << len;
00641     for (i = 0; i < len; ++i)
00642         s << a.at(i);
00643     return s;
00644 }

QDebug operator<< ( QDebug  dbg,
const QPolygon a 
)

Definition at line 407 of file qpolygon.cpp.

00408 {
00409 #ifndef Q_BROKEN_DEBUG_STREAM
00410     dbg.nospace() << "QPolygon(";
00411     for (int i = 0; i < a.count(); ++i)
00412         dbg.nospace() << a.at(i);
00413     dbg.nospace() << ')';
00414     return dbg.space();
00415 #else
00416     qWarning("This compiler doesn't support streaming QPolygon to QDebug");
00417     return dbg;
00418     Q_UNUSED(a);
00419 #endif
00420 }

QDataStream& operator>> ( QDataStream s,
QPolygonF a 
) [related]

Definition at line 656 of file qpolygon.cpp.

00657 {
00658     quint32 len;
00659     uint i;
00660 
00661     s >> len;
00662     a.reserve(a.size() + (int)len);
00663     QPointF p;
00664     for (i = 0; i < len; ++i) {
00665         s >> p;
00666         a.insert(i, p);
00667     }
00668     return s;
00669 }


Generated on Thu Mar 15 13:35:59 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1