equal
deleted
inserted
replaced
90 |
90 |
91 In addition QPen provides the color() and setColor() |
91 In addition QPen provides the color() and setColor() |
92 convenience functions to extract and set the color of the pen's |
92 convenience functions to extract and set the color of the pen's |
93 brush, respectively. Pens may also be compared and streamed. |
93 brush, respectively. Pens may also be compared and streamed. |
94 |
94 |
95 For more information about painting in general, see \l{The Paint |
95 For more information about painting in general, see the \l{Paint |
96 System} documentation. |
96 System} documentation. |
97 |
97 |
98 \tableofcontents |
98 \tableofcontents |
99 |
99 |
100 \section1 Pen Style |
100 \section1 Pen Style |
870 \relates QPen |
870 \relates QPen |
871 |
871 |
872 Writes the given \a pen to the given \a stream and returns a reference to |
872 Writes the given \a pen to the given \a stream and returns a reference to |
873 the \a stream. |
873 the \a stream. |
874 |
874 |
875 \sa {Format of the QDataStream Operators} |
875 \sa {Serializing Qt Data Types} |
876 */ |
876 */ |
877 |
877 |
878 QDataStream &operator<<(QDataStream &s, const QPen &p) |
878 QDataStream &operator<<(QDataStream &s, const QPen &p) |
879 { |
879 { |
880 QPenData *dd = static_cast<QPenData *>(p.d); |
880 QPenData *dd = static_cast<QPenData *>(p.d); |
916 \relates QPen |
916 \relates QPen |
917 |
917 |
918 Reads a pen from the given \a stream into the given \a pen and |
918 Reads a pen from the given \a stream into the given \a pen and |
919 returns a reference to the \a stream. |
919 returns a reference to the \a stream. |
920 |
920 |
921 \sa {Format of the QDataStream Operators} |
921 \sa {Serializing Qt Data Types} |
922 */ |
922 */ |
923 |
923 |
924 QDataStream &operator>>(QDataStream &s, QPen &p) |
924 QDataStream &operator>>(QDataStream &s, QPen &p) |
925 { |
925 { |
926 quint16 style; |
926 quint16 style; |