src/corelib/tools/qline.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   270     \relates QLine
   270     \relates QLine
   271 
   271 
   272     Writes the given \a line to the given \a stream and returns a
   272     Writes the given \a line to the given \a stream and returns a
   273     reference to the stream.
   273     reference to the stream.
   274 
   274 
   275     \sa {Format of the QDataStream Operators}
   275     \sa {Serializing Qt Data Types}
   276 */
   276 */
   277 
   277 
   278 QDataStream &operator<<(QDataStream &stream, const QLine &line)
   278 QDataStream &operator<<(QDataStream &stream, const QLine &line)
   279 {
   279 {
   280     stream << line.p1() << line.p2();
   280     stream << line.p1() << line.p2();
   285     \relates QLine
   285     \relates QLine
   286 
   286 
   287     Reads a line from the given \a stream into the given \a line and
   287     Reads a line from the given \a stream into the given \a line and
   288     returns a reference to the stream.
   288     returns a reference to the stream.
   289 
   289 
   290     \sa {Format of the QDataStream Operators}
   290     \sa {Serializing Qt Data Types}
   291 */
   291 */
   292 
   292 
   293 QDataStream &operator>>(QDataStream &stream, QLine &line)
   293 QDataStream &operator>>(QDataStream &stream, QLine &line)
   294 {
   294 {
   295     QPoint p1, p2;
   295     QPoint p1, p2;
   832     \relates QLineF
   832     \relates QLineF
   833 
   833 
   834     Writes the given \a line to the given \a stream and returns a
   834     Writes the given \a line to the given \a stream and returns a
   835     reference to the stream.
   835     reference to the stream.
   836 
   836 
   837     \sa {Format of the QDataStream Operators}
   837     \sa {Serializing Qt Data Types}
   838 */
   838 */
   839 
   839 
   840 QDataStream &operator<<(QDataStream &stream, const QLineF &line)
   840 QDataStream &operator<<(QDataStream &stream, const QLineF &line)
   841 {
   841 {
   842     stream << line.p1() << line.p2();
   842     stream << line.p1() << line.p2();
   847     \relates QLineF
   847     \relates QLineF
   848 
   848 
   849     Reads a line from the given \a stream into the given \a line and
   849     Reads a line from the given \a stream into the given \a line and
   850     returns a reference to the stream.
   850     returns a reference to the stream.
   851 
   851 
   852     \sa {Format of the QDataStream Operators}
   852     \sa {Serializing Qt Data Types}
   853 */
   853 */
   854 
   854 
   855 QDataStream &operator>>(QDataStream &stream, QLineF &line)
   855 QDataStream &operator>>(QDataStream &stream, QLineF &line)
   856 {
   856 {
   857     QPointF start, end;
   857     QPointF start, end;