diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-07 15:50:31 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:36:34 +0200 |
commit | cfdc5628b1fc2cbafa2aebca38995e5718fcb0de (patch) | |
tree | 67615dc74faa944bf7745c9db001efa3594a3249 /src/gui/painting | |
parent | 3b8e6027c2f79bde70f9415f0757df073ef75702 (diff) |
Doc: Modularize QtGui documentation.
This change moves the snippets and images to the modularized
directories.
Change-Id: I5f86f598fbe7c47d632c613b85d94ced89ba2c29
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbrush.cpp | 8 | ||||
-rw-r--r-- | src/gui/painting/qcolor.cpp | 2 | ||||
-rw-r--r-- | src/gui/painting/qmatrix.cpp | 14 | ||||
-rw-r--r-- | src/gui/painting/qpainter.cpp | 44 | ||||
-rw-r--r-- | src/gui/painting/qpainterpath.cpp | 14 | ||||
-rw-r--r-- | src/gui/painting/qpen.cpp | 8 | ||||
-rw-r--r-- | src/gui/painting/qpolygon.cpp | 14 | ||||
-rw-r--r-- | src/gui/painting/qregion.cpp | 4 | ||||
-rw-r--r-- | src/gui/painting/qtransform.cpp | 14 |
9 files changed, 61 insertions, 61 deletions
diff --git a/src/gui/painting/qbrush.cpp b/src/gui/painting/qbrush.cpp index 2f0fb9f96c..6ee28a42b9 100644 --- a/src/gui/painting/qbrush.cpp +++ b/src/gui/painting/qbrush.cpp @@ -292,7 +292,7 @@ struct QBrushDataPointerDeleter gradients: QLinearGradient, QConicalGradient, and QRadialGradient - all of which inherit QGradient. - \snippet doc/src/snippets/brush/gradientcreationsnippet.cpp 0 + \snippet brush/gradientcreationsnippet.cpp 0 The texture() defines the pixmap used when the current style is Qt::TexturePattern. You can create a brush with a texture by @@ -323,7 +323,7 @@ struct QBrushDataPointerDeleter QPainter's \l {QPen}{pen} combined with Qt::PenStyle and Qt::GlobalColor: - \snippet doc/src/snippets/code/src_gui_painting_qbrush.cpp 0 + \snippet code/src_gui_painting_qbrush.cpp 0 Note that, by default, QPainter renders the outline (using the currently set pen) when drawing shapes. Use \l {Qt::NoPen}{\c @@ -1214,13 +1214,13 @@ QDataStream &operator>>(QDataStream &s, QBrush &b) A diagonal linear gradient from black at (100, 100) to white at (200, 200) could be specified like this: - \snippet doc/src/snippets/brush/brush.cpp 0 + \snippet brush/brush.cpp 0 A gradient can have an arbitrary number of stop points. The following would create a radial gradient starting with red in the center, blue and then green on the edges: - \snippet doc/src/snippets/brush/brush.cpp 1 + \snippet brush/brush.cpp 1 It is possible to repeat or reflect the gradient outside its area by specifiying the \l {QGradient::Spread}{spread method} using the diff --git a/src/gui/painting/qcolor.cpp b/src/gui/painting/qcolor.cpp index 75122571d6..81f5a7438a 100644 --- a/src/gui/painting/qcolor.cpp +++ b/src/gui/painting/qcolor.cpp @@ -148,7 +148,7 @@ QT_BEGIN_NAMESPACE represents a fully transparent color, while 255 represents a fully opaque color. For example: - \snippet doc/src/snippets/code/src_gui_painting_qcolor.cpp 0 + \snippet code/src_gui_painting_qcolor.cpp 0 The code above produces the following output: diff --git a/src/gui/painting/qmatrix.cpp b/src/gui/painting/qmatrix.cpp index c26d7e5d98..afefb1787c 100644 --- a/src/gui/painting/qmatrix.cpp +++ b/src/gui/painting/qmatrix.cpp @@ -114,7 +114,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qmatrix-simpletransformation.png \li - \snippet doc/src/snippets/matrix/matrix.cpp 0 + \snippet matrix/matrix.cpp 0 \endtable Although these functions are very convenient, it can be more @@ -126,7 +126,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qmatrix-combinedtransformation.png \li - \snippet doc/src/snippets/matrix/matrix.cpp 1 + \snippet matrix/matrix.cpp 1 \endtable \section1 Basic Matrix Operations @@ -142,7 +142,7 @@ QT_BEGIN_NAMESPACE QMatrix transforms a point in the plane to another point using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 0 + \snippet code/src_gui_painting_qmatrix.cpp 0 The point \e (x, y) is the original point, and \e (x', y') is the transformed point. \e (x', y') can be transformed back to \e (x, @@ -174,7 +174,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qmatrix-combinedtransformation.png \li - \snippet doc/src/snippets/matrix/matrix.cpp 2 + \snippet matrix/matrix.cpp 2 \endtable \sa QPainter, QTransform, {Coordinate System}, @@ -342,7 +342,7 @@ void QMatrix::setMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qr The coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 1 + \snippet code/src_gui_painting_qmatrix.cpp 1 The point (x, y) is the original point, and (x', y') is the transformed point. @@ -427,7 +427,7 @@ QRect QMatrix::mapRect(const QRect &rect) const The rectangle's coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 2 + \snippet code/src_gui_painting_qmatrix.cpp 2 If rotation or shearing has been specified, this function returns the \e bounding rectangle. To retrieve the exact region the given @@ -741,7 +741,7 @@ QPainterPath QMatrix::map(const QPainterPath &path) const The rectangle's coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qmatrix.cpp 3 + \snippet code/src_gui_painting_qmatrix.cpp 3 Polygons and rectangles behave slightly differently when transformed (due to integer rounding), so diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 68e60ed548..e622fe46a7 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -941,7 +941,7 @@ void QPainterPrivate::updateState(QPainterState *newState) painter. Then draw. Remember to destroy the QPainter object after drawing. For example: - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 0 + \snippet code/src_gui_painting_qpainter.cpp 0 The core functionality of QPainter is drawing, but the class also provide several functions that allows you to customize QPainter's @@ -1446,10 +1446,10 @@ QPainter::QPainter() automatically calls end(). Here's an example using begin() and end(): - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 1 + \snippet code/src_gui_painting_qpainter.cpp 1 The same example using this constructor: - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 2 + \snippet code/src_gui_painting_qpainter.cpp 2 Since the constructor cannot provide feedback when the initialization of the painter failed you should rather use begin() and end() to paint @@ -1667,7 +1667,7 @@ void QPainter::restore() The errors that can occur are serious problems, such as these: - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 3 + \snippet code/src_gui_painting_qpainter.cpp 3 Note that most of the time, you can use one of the constructors instead of begin(), and that end() is automatically done at @@ -1956,7 +1956,7 @@ QPaintEngine *QPainter::paintEngine() const default state by endNativePainting(). Here is an example that shows intermixing of painter commands and raw OpenGL commands: - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 21 + \snippet code/src_gui_painting_qpainter.cpp 21 \sa endNativePainting() */ @@ -2871,7 +2871,7 @@ void QPainter::setClipRegion(const QRegion &r, Qt::ClipOperation op) They operate on the painter's worldMatrix() and are implemented like this: - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 4 + \snippet code/src_gui_painting_qpainter.cpp 4 Note that when using setWorldMatrix() function you should always have \a combine be true when you are drawing into a QPicture. Otherwise @@ -3340,7 +3340,7 @@ void QPainter::fillPath(const QPainterPath &path, const QBrush &brush) \row \li \inlineimage qpainter-path.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 5 + \snippet code/src_gui_painting_qpainter.cpp 5 \endtable \sa {painting/painterpaths}{the Painter Paths @@ -3385,7 +3385,7 @@ void QPainter::drawPath(const QPainterPath &path) \row \li \inlineimage qpainter-line.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 6 + \snippet code/src_gui_painting_qpainter.cpp 6 \endtable \sa drawLines(), drawPolyline(), {Coordinate System} @@ -3432,7 +3432,7 @@ void QPainter::drawPath(const QPainterPath &path) \row \li \inlineimage qpainter-rectangle.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 7 + \snippet code/src_gui_painting_qpainter.cpp 7 \endtable \sa drawRects(), drawPolygon(), {Coordinate System} @@ -4101,7 +4101,7 @@ const QFont &QPainter::font() const \row \li \inlineimage qpainter-roundrect.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 8 + \snippet code/src_gui_painting_qpainter.cpp 8 \endtable \sa drawRect(), QPen @@ -4201,7 +4201,7 @@ void QPainter::drawRoundRect(const QRectF &r, int xRnd, int yRnd) \row \li \inlineimage qpainter-ellipse.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 9 + \snippet code/src_gui_painting_qpainter.cpp 9 \endtable \sa drawPie(), {Coordinate System} @@ -4327,7 +4327,7 @@ void QPainter::drawEllipse(const QRect &r) \row \li \inlineimage qpainter-arc.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 10 + \snippet code/src_gui_painting_qpainter.cpp 10 \endtable \sa drawPie(), drawChord(), {Coordinate System} @@ -4391,7 +4391,7 @@ void QPainter::drawArc(const QRectF &r, int a, int alen) \row \li \inlineimage qpainter-pie.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 11 + \snippet code/src_gui_painting_qpainter.cpp 11 \endtable \sa drawEllipse(), drawChord(), {Coordinate System} @@ -4460,7 +4460,7 @@ void QPainter::drawPie(const QRectF &r, int a, int alen) \row \li \inlineimage qpainter-chord.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 12 + \snippet code/src_gui_painting_qpainter.cpp 12 \endtable \sa drawArc(), drawPie(), {Coordinate System} @@ -4675,7 +4675,7 @@ void QPainter::drawLines(const QPoint *pointPairs, int lineCount) \table 100% \row \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 13 + \snippet code/src_gui_painting_qpainter.cpp 13 \endtable \sa drawLines(), drawPolygon(), {Coordinate System} @@ -4782,7 +4782,7 @@ void QPainter::drawPolyline(const QPoint *points, int pointCount) \row \li \inlineimage qpainter-polygon.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 14 + \snippet code/src_gui_painting_qpainter.cpp 14 \endtable The first point is implicitly connected to the last point, and the @@ -4895,7 +4895,7 @@ void QPainter::drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fi \row \li \inlineimage qpainter-polygon.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 15 + \snippet code/src_gui_painting_qpainter.cpp 15 \endtable The first point is implicitly connected to the last point, and the @@ -5018,7 +5018,7 @@ static inline QPointF roundInDeviceCoordinates(const QPointF &p, const QTransfor \table 100% \row \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 16 + \snippet code/src_gui_painting_qpainter.cpp 16 \endtable If \a pixmap is a QBitmap it is drawn with the bits that are "set" @@ -5928,7 +5928,7 @@ void QPainter::drawText(const QRect &r, int flags, const QString &str, QRect *br \row \li \inlineimage qpainter-text.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 17 + \snippet code/src_gui_painting_qpainter.cpp 17 \endtable The \a boundingRect (if not null) is set to the what the bounding rectangle @@ -6682,7 +6682,7 @@ void QPainter::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPo \table 100% \row \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 18 + \snippet code/src_gui_painting_qpainter.cpp 18 \endtable \sa QPicture::play() @@ -6725,7 +6725,7 @@ void QPainter::drawPicture(const QPointF &p, const QPicture &picture) Erases the area inside the given \a rectangle. Equivalent to calling - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 19 + \snippet code/src_gui_painting_qpainter.cpp 19 \sa fillRect() */ @@ -7669,7 +7669,7 @@ void QPainterState::init(QPainter *p) { \table 100% \row \li - \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 20 + \snippet code/src_gui_painting_qpainter.cpp 20 \endtable \sa drawPixmap() diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 0e8811b934..dc310520e0 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -229,7 +229,7 @@ static void qt_debug_path(const QPainterPath &path) \row \li \inlineimage qpainterpath-construction.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 0 + \snippet code/src_gui_painting_qpainterpath.cpp 0 \endtable The painter path is initially empty when constructed. We first add @@ -763,7 +763,7 @@ void QPainterPath::lineTo(const QPointF &p) \row \li \inlineimage qpainterpath-cubicto.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 1 + \snippet code/src_gui_painting_qpainterpath.cpp 1 \endtable \sa quadTo(), {QPainterPath#Composing a QPainterPath}{Composing @@ -890,7 +890,7 @@ void QPainterPath::quadTo(const QPointF &c, const QPointF &e) \row \li \inlineimage qpainterpath-arcto.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 2 + \snippet code/src_gui_painting_qpainterpath.cpp 2 \endtable \sa arcMoveTo(), addEllipse(), QPainter::drawArc(), QPainter::drawPie(), @@ -1002,7 +1002,7 @@ QPointF QPainterPath::currentPosition() const \row \li \inlineimage qpainterpath-addrectangle.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 3 + \snippet code/src_gui_painting_qpainterpath.cpp 3 \endtable \sa addRegion(), lineTo(), {QPainterPath#Composing a @@ -1049,7 +1049,7 @@ void QPainterPath::addRect(const QRectF &r) \row \li \inlineimage qpainterpath-addpolygon.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 4 + \snippet code/src_gui_painting_qpainterpath.cpp 4 \endtable \sa lineTo(), {QPainterPath#Composing a QPainterPath}{Composing @@ -1085,7 +1085,7 @@ void QPainterPath::addPolygon(const QPolygonF &polygon) \row \li \inlineimage qpainterpath-addellipse.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 5 + \snippet code/src_gui_painting_qpainterpath.cpp 5 \endtable \sa arcTo(), QPainter::drawEllipse(), {QPainterPath#Composing a @@ -1137,7 +1137,7 @@ void QPainterPath::addEllipse(const QRectF &boundingRect) \row \li \inlineimage qpainterpath-addtext.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpainterpath.cpp 6 + \snippet code/src_gui_painting_qpainterpath.cpp 6 \endtable \sa QPainter::drawText(), {QPainterPath#Composing a diff --git a/src/gui/painting/qpen.cpp b/src/gui/painting/qpen.cpp index 77f0edc52f..2c95a9f146 100644 --- a/src/gui/painting/qpen.cpp +++ b/src/gui/painting/qpen.cpp @@ -79,11 +79,11 @@ typedef QPenPrivate QPenData; For example: - \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 0 + \snippet code/src_gui_painting_qpen.cpp 0 which is equivalent to - \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 1 + \snippet code/src_gui_painting_qpen.cpp 1 The default pen is a solid black brush with 0 width, square cap style (Qt::SquareCap), and bevel join style (Qt::BevelJoin). @@ -135,7 +135,7 @@ typedef QPenPrivate QPenData; spaces. For example, the custom pattern shown above is created using the following code: - \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 2 + \snippet code/src_gui_painting_qpen.cpp 2 Note that the dash pattern is specified in units of the pens width, e.g. a dash of length 5 in width 10 is 50 pixels long. @@ -476,7 +476,7 @@ QVector<qreal> QPen::dashPattern() const \row \li \inlineimage qpen-custom.png \li - \snippet doc/src/snippets/code/src_gui_painting_qpen.cpp 3 + \snippet code/src_gui_painting_qpen.cpp 3 \endtable The dash pattern is specified in units of the pens width; e.g. a diff --git a/src/gui/painting/qpolygon.cpp b/src/gui/painting/qpolygon.cpp index ee1f7967cb..b7dee7ff2a 100644 --- a/src/gui/painting/qpolygon.cpp +++ b/src/gui/painting/qpolygon.cpp @@ -98,7 +98,7 @@ static void qt_polygon_isect_line(const QPointF &p1, const QPointF &p2, const QP points to a QPolygon is to use QVector's streaming operator, as illustrated below: - \snippet doc/src/snippets/polygon/polygon.cpp 0 + \snippet polygon/polygon.cpp 0 In addition to the functions provided by QVector, QPolygon provides some point-specific functions. @@ -304,7 +304,7 @@ void QPolygon::point(int index, int *x, int *y) const The example code creates a polygon with two points (10, 20) and (30, 40): - \snippet doc/src/snippets/polygon/polygon.cpp 2 + \snippet polygon/polygon.cpp 2 \sa setPoint() putPoints() */ @@ -330,7 +330,7 @@ void QPolygon::setPoints(int nPoints, const int *points) The example code creates a polygon with two points (10, 20) and (30, 40): - \snippet doc/src/snippets/polygon/polygon.cpp 3 + \snippet polygon/polygon.cpp 3 */ void QPolygon::setPoints(int nPoints, int firstx, int firsty, ...) @@ -381,12 +381,12 @@ void QPolygon::putPoints(int index, int nPoints, const int *points) The example code creates a polygon with three points (4,5), (6,7) and (8,9), by expanding the polygon from 1 to 3 points: - \snippet doc/src/snippets/polygon/polygon.cpp 4 + \snippet polygon/polygon.cpp 4 The following code has the same result, but here the putPoints() function overwrites rather than extends: - \snippet doc/src/snippets/polygon/polygon.cpp 5 + \snippet polygon/polygon.cpp 5 \sa setPoints() */ @@ -418,7 +418,7 @@ void QPolygon::putPoints(int index, int nPoints, int firstx, int firsty, ...) default) in \a fromPolygon into this polygon, starting at the specified \a index. For example: - \snippet doc/src/snippets/polygon/polygon.cpp 6 + \snippet polygon/polygon.cpp 6 */ void QPolygon::putPoints(int index, int nPoints, const QPolygon & from, int fromIndex) @@ -490,7 +490,7 @@ QDebug operator<<(QDebug dbg, const QPolygon &a) to a QPolygonF is to use its streaming operator, as illustrated below: - \snippet doc/src/snippets/polygon/polygon.cpp 1 + \snippet polygon/polygon.cpp 1 In addition to the functions provided by QVector, QPolygonF provides the boundingRect() and translate() functions for geometry diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index ebca1edddc..f250150b06 100644 --- a/src/gui/painting/qregion.cpp +++ b/src/gui/painting/qregion.cpp @@ -86,7 +86,7 @@ QT_BEGIN_NAMESPACE rectangles. Example of using complex regions: - \snippet doc/src/snippets/code/src_gui_painting_qregion.cpp 0 + \snippet code/src_gui_painting_qregion.cpp 0 \section1 Additional License Information @@ -725,7 +725,7 @@ QRegion QRegion::intersect(const QRect &r) const empty region is a region that contains no points. Example: - \snippet doc/src/snippets/code/src_gui_painting_qregion_unix.cpp 0 + \snippet code/src_gui_painting_qregion_unix.cpp 0 */ /*! diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp index ba971d454d..924a444805 100644 --- a/src/gui/painting/qtransform.cpp +++ b/src/gui/painting/qtransform.cpp @@ -159,7 +159,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qtransform-simpletransformation.png \li - \snippet doc/src/snippets/transform/main.cpp 0 + \snippet transform/main.cpp 0 \endtable Although these functions are very convenient, it can be more @@ -171,7 +171,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qtransform-combinedtransformation.png \li - \snippet doc/src/snippets/transform/main.cpp 1 + \snippet transform/main.cpp 1 \endtable \section1 Basic Matrix Operations @@ -188,7 +188,7 @@ QT_BEGIN_NAMESPACE QTransform transforms a point in the plane to another point using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 0 + \snippet code/src_gui_painting_qtransform.cpp 0 The point \e (x, y) is the original point, and \e (x', y') is the transformed point. \e (x', y') can be transformed back to \e (x, @@ -221,7 +221,7 @@ QT_BEGIN_NAMESPACE \row \li \inlineimage qtransform-combinedtransformation2.png \li - \snippet doc/src/snippets/transform/main.cpp 2 + \snippet transform/main.cpp 2 \endtable \sa QPainter, {Coordinate System}, {painting/affine}{Affine @@ -1662,7 +1662,7 @@ QPainterPath QTransform::map(const QPainterPath &path) const The rectangle's coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 1 + \snippet code/src_gui_painting_qtransform.cpp 1 Polygons and rectangles behave slightly differently when transformed (due to integer rounding), so @@ -1915,7 +1915,7 @@ QRect QTransform::mapRect(const QRect &rect) const The rectangle's coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 2 + \snippet code/src_gui_painting_qtransform.cpp 2 If rotation or shearing has been specified, this function returns the \e bounding rectangle. To retrieve the exact region the given @@ -1991,7 +1991,7 @@ QRectF QTransform::mapRect(const QRectF &rect) const The coordinates are transformed using the following formulas: - \snippet doc/src/snippets/code/src_gui_painting_qtransform.cpp 3 + \snippet code/src_gui_painting_qtransform.cpp 3 The point (x, y) is the original point, and (x', y') is the transformed point. |