Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QDataStream & operator>> ( QDataStream stream,
QPoint point 
) [related]

Reads a point from the given stream into the given point and returns a reference to the stream.

See also:
{Format of the QDataStream Operators}

Definition at line 358 of file qpoint.cpp.

References rx(), ry(), and QDataStream::version().

{
    if (s.version() == 1) {
        qint16 x, y;
        s >> x;  p.rx() = x;
        s >> y;  p.ry() = y;
    }
    else {
        qint32 x, y;
        s >> x;  p.rx() = x;
        s >> y;  p.ry() = y;
    }
    return s;
}


Generated by  Doxygen 1.6.0   Back to index