diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2020-07-30 13:21:37 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-08-05 07:58:14 +0000 |
commit | e884bc82e0344348621c4aa403d37f4e49ebec8c (patch) | |
tree | 4fcdb4398e93a747a1f1d9cf997a85b8db03fad3 | |
parent | 5826a7ad921930393c84b790123f493e26d0685c (diff) |
Fix "rectange" typos in qtbase
Change-Id: If064fae5eaaeb2e53e3dd05cb9dc1cdf49ad1f04
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
(cherry picked from commit f4093d02ff387956de4cd2662cc2d4e0e6d3fda4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/corelib/tools/qrect.cpp | 4 | ||||
-rw-r--r-- | src/gui/doc/src/coordsys.qdoc | 2 | ||||
-rw-r--r-- | src/gui/painting/qcssutil.cpp | 2 | ||||
-rw-r--r-- | src/gui/painting/qregion.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp index cd20102a2b..6f120b9d10 100644 --- a/src/corelib/tools/qrect.cpp +++ b/src/corelib/tools/qrect.cpp @@ -81,7 +81,7 @@ QT_BEGIN_NAMESPACE position, and the translated() function returns a translated copy of this rectangle. - The size() function returns the rectange's dimensions as a + The size() function returns the rectangle's dimensions as a QSize. The dimensions can also be retrieved separately using the width() and height() functions. To manipulate the dimensions use the setSize(), setWidth() or setHeight() functions. Alternatively, @@ -1340,7 +1340,7 @@ QDebug operator<<(QDebug dbg, const QRect &r) current position, and the translated() function returns a translated copy of this rectangle. - The size() function returns the rectange's dimensions as a + The size() function returns the rectangle's dimensions as a QSizeF. The dimensions can also be retrieved separately using the width() and height() functions. To manipulate the dimensions use the setSize(), setWidth() or setHeight() functions. Alternatively, diff --git a/src/gui/doc/src/coordsys.qdoc b/src/gui/doc/src/coordsys.qdoc index 1018b2122b..ed413b500f 100644 --- a/src/gui/doc/src/coordsys.qdoc +++ b/src/gui/doc/src/coordsys.qdoc @@ -434,7 +434,7 @@ \li A vectorial specification of a 2D shape. Painter paths are the ultimate painting primitive, in the sense that any shape - (rectange, ellipse, spline) or combination of shapes can be + (rectangle, ellipse, spline) or combination of shapes can be expressed as a path. A path specifies both an outline and an area. \row \li QRegion diff --git a/src/gui/painting/qcssutil.cpp b/src/gui/painting/qcssutil.cpp index 2d514e14e0..42e14b3d84 100644 --- a/src/gui/painting/qcssutil.cpp +++ b/src/gui/painting/qcssutil.cpp @@ -328,7 +328,7 @@ void qNormalizeRadii(const QRect &br, const QSize *radii, *trr = *brr = QSize(0, 0); } -// Determines if Edge e1 draws over Edge e2. Depending on this trapezoids or rectanges are drawn +// Determines if Edge e1 draws over Edge e2. Depending on this trapezoids or rectangles are drawn static bool paintsOver(const QCss::BorderStyle *styles, const QBrush *colors, QCss::Edge e1, QCss::Edge e2) { QCss::BorderStyle s1 = styles[e1]; diff --git a/src/gui/painting/qregion.cpp b/src/gui/painting/qregion.cpp index 739a4d04e6..2ecc97af04 100644 --- a/src/gui/painting/qregion.cpp +++ b/src/gui/painting/qregion.cpp @@ -130,7 +130,7 @@ QT_BEGIN_NAMESPACE \fn QRegion::QRegion(const QRect &r, RegionType t) \overload - Create a region based on the rectange \a r with region type \a t. + Create a region based on the rectangle \a r with region type \a t. If the rectangle is invalid a null region will be created. |