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

QDataStream & operator<< ( QDataStream stream,
const QPainterPath path 
) [friend]

Writes the given painter path to the given stream, and returns a reference to the stream.

See also:
{Format of the QDataStream Operators}

Definition at line 2146 of file qpainterpath.cpp.

{
    if (p.isEmpty()) {
        s << 0;
        return s;
    }

    s << p.elementCount();
    for (int i=0; i < p.d_func()->elements.size(); ++i) {
        const QPainterPath::Element &e = p.d_func()->elements.at(i);
        s << int(e.type);
        s << double(e.x) << double(e.y);
    }
    s << p.d_func()->cStart;
    s << int(p.d_func()->fillRule);
    return s;
}


Generated by  Doxygen 1.6.0   Back to index