diff options
author | David Boddie <david.boddie@nokia.com> | 2011-04-18 13:21:15 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2011-05-04 17:02:34 (GMT) |
commit | d1e70c3dd05df1f92f7a895de0b86b0c3a562511 (patch) | |
tree | 3506e200a7274db2e4198e9c17231d700928b1a5 /src/declarative | |
parent | c444fcacd47387af84208fb07b3f71e2f1675e22 (diff) | |
download | Qt-d1e70c3dd05df1f92f7a895de0b86b0c3a562511.zip Qt-d1e70c3dd05df1f92f7a895de0b86b0c3a562511.tar.gz Qt-d1e70c3dd05df1f92f7a895de0b86b0c3a562511.tar.bz2 |
Doc: Fixed incorrect inline snippet for an example .sci file.
Task-number: QTBUG-18812
(cherry picked from commit 4e8672c87bd7e740b01ca29a2a3c8ba902ed664b)
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativeborderimage.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeborderimage.cpp b/src/declarative/graphicsitems/qdeclarativeborderimage.cpp index 45a03a0..15607a3 100644 --- a/src/declarative/graphicsitems/qdeclarativeborderimage.cpp +++ b/src/declarative/graphicsitems/qdeclarativeborderimage.cpp @@ -240,22 +240,20 @@ QDeclarativeBorderImage::~QDeclarativeBorderImage() BorderImage can handle any image format supported by Qt, loaded from any URL scheme supported by Qt. - It can also handle .sci files, which are a QML-specific format. A .sci - file uses a simple text-based format that specifies the borders, the - image file and the tile rules. + This property can also be used to refer to .sci files, which are + written in a QML-specific, text-based format that specifies the + borders, the image file and the tile rules for a given border image. The following .sci file sets the borders to 10 on each side for the image \c picture.png: - \qml - BorderImage { - border.left: 10 - border.top: 10 - border.bottom: 10 - border.right: 10 - source: "picture.png" - } - \endqml + \code + border.left: 10 + border.top: 10 + border.bottom: 10 + border.right: 10 + source: "picture.png" + \endcode The URL may be absolute, or relative to the URL of the component. |