equal
deleted
inserted
replaced
101 |
101 |
102 By default, QPainter operates on the associated device's own |
102 By default, QPainter operates on the associated device's own |
103 coordinate system. The standard coordinate system of a |
103 coordinate system. The standard coordinate system of a |
104 QPaintDevice has its origin located at the top-left position. The |
104 QPaintDevice has its origin located at the top-left position. The |
105 \e x values increase to the right; \e y values increase |
105 \e x values increase to the right; \e y values increase |
106 downward. For a complete description, see the \l {The Coordinate |
106 downward. For a complete description, see the \l {Coordinate |
107 System}{coordinate system} documentation. |
107 System}{coordinate system} documentation. |
108 |
108 |
109 QPainter has functions to translate, scale, shear and rotate the |
109 QPainter has functions to translate, scale, shear and rotate the |
110 coordinate system without using a QMatrix. For example: |
110 coordinate system without using a QMatrix. For example: |
111 |
111 |
174 \o \inlineimage qmatrix-combinedtransformation.png |
174 \o \inlineimage qmatrix-combinedtransformation.png |
175 \o |
175 \o |
176 \snippet doc/src/snippets/matrix/matrix.cpp 2 |
176 \snippet doc/src/snippets/matrix/matrix.cpp 2 |
177 \endtable |
177 \endtable |
178 |
178 |
179 \sa QPainter, QTransform, {The Coordinate System}, |
179 \sa QPainter, QTransform, {Coordinate System}, |
180 {demos/affine}{Affine Transformations Demo}, {Transformations Example} |
180 {demos/affine}{Affine Transformations Demo}, {Transformations Example} |
181 */ |
181 */ |
182 |
182 |
183 |
183 |
184 // some defines to inline some code |
184 // some defines to inline some code |
1133 \relates QMatrix |
1133 \relates QMatrix |
1134 |
1134 |
1135 Writes the given \a matrix to the given \a stream and returns a |
1135 Writes the given \a matrix to the given \a stream and returns a |
1136 reference to the stream. |
1136 reference to the stream. |
1137 |
1137 |
1138 \sa {Format of the QDataStream Operators} |
1138 \sa {Serializing Qt Data Types} |
1139 */ |
1139 */ |
1140 |
1140 |
1141 QDataStream &operator<<(QDataStream &s, const QMatrix &m) |
1141 QDataStream &operator<<(QDataStream &s, const QMatrix &m) |
1142 { |
1142 { |
1143 if (s.version() == 1) { |
1143 if (s.version() == 1) { |
1159 \relates QMatrix |
1159 \relates QMatrix |
1160 |
1160 |
1161 Reads the given \a matrix from the given \a stream and returns a |
1161 Reads the given \a matrix from the given \a stream and returns a |
1162 reference to the stream. |
1162 reference to the stream. |
1163 |
1163 |
1164 \sa {Format of the QDataStream Operators} |
1164 \sa {Serializing Qt Data Types} |
1165 */ |
1165 */ |
1166 |
1166 |
1167 QDataStream &operator>>(QDataStream &s, QMatrix &m) |
1167 QDataStream &operator>>(QDataStream &s, QMatrix &m) |
1168 { |
1168 { |
1169 if (s.version() == 1) { |
1169 if (s.version() == 1) { |