equal
deleted
inserted
replaced
717 \relates QPolygon |
717 \relates QPolygon |
718 |
718 |
719 Writes the given \a polygon to the given \a stream, and returns a |
719 Writes the given \a polygon to the given \a stream, and returns a |
720 reference to the stream. |
720 reference to the stream. |
721 |
721 |
722 \sa {Format of the QDataStream Operators} |
722 \sa {Serializing Qt Data Types} |
723 */ |
723 */ |
724 QDataStream &operator<<(QDataStream &s, const QPolygon &a) |
724 QDataStream &operator<<(QDataStream &s, const QPolygon &a) |
725 { |
725 { |
726 const QVector<QPoint> &v = a; |
726 const QVector<QPoint> &v = a; |
727 return s << v; |
727 return s << v; |
733 \relates QPolygon |
733 \relates QPolygon |
734 |
734 |
735 Reads a polygon from the given \a stream into the given \a |
735 Reads a polygon from the given \a stream into the given \a |
736 polygon, and returns a reference to the stream. |
736 polygon, and returns a reference to the stream. |
737 |
737 |
738 \sa {Format of the QDataStream Operators} |
738 \sa {Serializing Qt Data Types} |
739 */ |
739 */ |
740 QDataStream &operator>>(QDataStream &s, QPolygon &a) |
740 QDataStream &operator>>(QDataStream &s, QPolygon &a) |
741 { |
741 { |
742 QVector<QPoint> &v = a; |
742 QVector<QPoint> &v = a; |
743 return s >> v; |
743 return s >> v; |
753 \relates QPolygonF |
753 \relates QPolygonF |
754 |
754 |
755 Writes the given \a polygon to the given \a stream, and returns a |
755 Writes the given \a polygon to the given \a stream, and returns a |
756 reference to the stream. |
756 reference to the stream. |
757 |
757 |
758 \sa {Format of the QDataStream Operators} |
758 \sa {Serializing Qt Data Types} |
759 */ |
759 */ |
760 |
760 |
761 QDataStream &operator<<(QDataStream &s, const QPolygonF &a) |
761 QDataStream &operator<<(QDataStream &s, const QPolygonF &a) |
762 { |
762 { |
763 quint32 len = a.size(); |
763 quint32 len = a.size(); |
774 \relates QPolygonF |
774 \relates QPolygonF |
775 |
775 |
776 Reads a polygon from the given \a stream into the given \a |
776 Reads a polygon from the given \a stream into the given \a |
777 polygon, and returns a reference to the stream. |
777 polygon, and returns a reference to the stream. |
778 |
778 |
779 \sa {Format of the QDataStream Operators} |
779 \sa {Serializing Qt Data Types} |
780 */ |
780 */ |
781 |
781 |
782 QDataStream &operator>>(QDataStream &s, QPolygonF &a) |
782 QDataStream &operator>>(QDataStream &s, QPolygonF &a) |
783 { |
783 { |
784 quint32 len; |
784 quint32 len; |