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

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

Writes the given point to the given stream and returns a reference to the stream.

See also:
{Format of the QDataStream Operators}

Definition at line 339 of file qpoint.cpp.

References QDataStream::version(), x(), and y().

{
    if (s.version() == 1)
        s << (qint16)p.x() << (qint16)p.y();
    else
        s << (qint32)p.x() << (qint32)p.y();
    return s;
}


Generated by  Doxygen 1.6.0   Back to index