aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickrectangle.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2012-07-11 16:29:42 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-16 04:50:48 +0200
commit50ec85e368a15236812776c274cdb10ac2be0ccd (patch)
tree5666c7bba41a2895340f91b4c1a5efcb1a11078e /src/quick/items/qquickrectangle.cpp
parent7ddd5308946f32f4f0514c493a0a0f01c2bdc840 (diff)
Change Quick docs to refer to "types" rather than "elements"
Task-number: QTBUG-24785 Change-Id: I223479b879514abaacb123852323c1cfada7a5e1 Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src/quick/items/qquickrectangle.cpp')
-rw-r--r--src/quick/items/qquickrectangle.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/quick/items/qquickrectangle.cpp b/src/quick/items/qquickrectangle.cpp
index ec300e87b0..99ad7b7375 100644
--- a/src/quick/items/qquickrectangle.cpp
+++ b/src/quick/items/qquickrectangle.cpp
@@ -195,7 +195,7 @@ void QQuickGradientStop::updateGradient()
A gradient without any gradient stops is rendered as a solid white fill.
Note that this item is not a visual representation of a gradient. To display a
- gradient, use a visual element (like \l Rectangle) which supports the use
+ gradient, use a visual item (like \l Rectangle) which supports the use
of gradients.
\section1 Example Usage
@@ -237,7 +237,7 @@ void QQuickGradientStop::updateGradient()
By default, this property contains an empty list.
- To set the gradient stops, define them as children of the Gradient element.
+ To set the gradient stops, define them as children of the Gradient.
*/
QQuickGradient::QQuickGradient(QObject *parent)
: QObject(parent)
@@ -265,20 +265,21 @@ int QQuickRectanglePrivate::doUpdateSlotIdx = -1;
\inqmlmodule QtQuick 2
\inherits Item
\ingroup qtquick-visual
- \brief Describes a filled rectangle with an optional border
+ \brief Paints a filled rectangle with an optional border
- Rectangle items are used to fill areas with solid color or gradients, and are
- often used to hold other items.
+ Rectangle items are used to fill areas with solid color or gradients, and/or
+ to provide a rectangular border.
\section1 Appearance
Each Rectangle item is painted using either a solid fill color, specified using
- the \l color property, or a gradient, defined using a Gradient element and set
+ the \l color property, or a gradient, defined using a Gradient type and set
using the \l gradient property. If both a color and a gradient are specified,
the gradient is used.
You can add an optional border to a rectangle with its own color and thickness
- by setting the \l border.color and \l border.width properties.
+ by setting the \l border.color and \l border.width properties. Set the color
+ to "transparent" to paint a border without a fill color.
You can also create rounded rectangles using the \l radius property. Since this
introduces curved edges to the corners of a rectangle, it may be appropriate to