src/corelib/tools/qpoint.cpp
changeset 30 5dc02b23752f
parent 22 79de32ba3296
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   304     \relates QPoint
   304     \relates QPoint
   305 
   305 
   306     Writes the given \a point to the given \a stream and returns a
   306     Writes the given \a point to the given \a stream and returns a
   307     reference to the stream.
   307     reference to the stream.
   308 
   308 
   309     \sa {Format of the QDataStream Operators}
   309     \sa {Serializing Qt Data Types}
   310 */
   310 */
   311 
   311 
   312 QDataStream &operator<<(QDataStream &s, const QPoint &p)
   312 QDataStream &operator<<(QDataStream &s, const QPoint &p)
   313 {
   313 {
   314     if (s.version() == 1)
   314     if (s.version() == 1)
   323     \relates QPoint
   323     \relates QPoint
   324 
   324 
   325     Reads a point from the given \a stream into the given \a point
   325     Reads a point from the given \a stream into the given \a point
   326     and returns a reference to the stream.
   326     and returns a reference to the stream.
   327 
   327 
   328     \sa {Format of the QDataStream Operators}
   328     \sa {Serializing Qt Data Types}
   329 */
   329 */
   330 
   330 
   331 QDataStream &operator>>(QDataStream &s, QPoint &p)
   331 QDataStream &operator>>(QDataStream &s, QPoint &p)
   332 {
   332 {
   333     if (s.version() == 1) {
   333     if (s.version() == 1) {
   645     \relates QPointF
   645     \relates QPointF
   646 
   646 
   647     Writes the given \a point to the given \a stream and returns a
   647     Writes the given \a point to the given \a stream and returns a
   648     reference to the stream.
   648     reference to the stream.
   649 
   649 
   650     \sa {Format of the QDataStream Operators}
   650     \sa {Serializing Qt Data Types}
   651 */
   651 */
   652 
   652 
   653 QDataStream &operator<<(QDataStream &s, const QPointF &p)
   653 QDataStream &operator<<(QDataStream &s, const QPointF &p)
   654 {
   654 {
   655     s << double(p.x()) << double(p.y());
   655     s << double(p.x()) << double(p.y());
   661     \relates QPointF
   661     \relates QPointF
   662 
   662 
   663     Reads a point from the given \a stream into the given \a point
   663     Reads a point from the given \a stream into the given \a point
   664     and returns a reference to the stream.
   664     and returns a reference to the stream.
   665 
   665 
   666     \sa {Format of the QDataStream Operators}
   666     \sa {Serializing Qt Data Types}
   667 */
   667 */
   668 
   668 
   669 QDataStream &operator>>(QDataStream &s, QPointF &p)
   669 QDataStream &operator>>(QDataStream &s, QPointF &p)
   670 {
   670 {
   671     double x, y;
   671     double x, y;