summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-18 22:51:45 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-18 22:51:45 (GMT)
commit06bef623b0ae135ba539df1e4ae12267abd70784 (patch)
tree3db6c1672a1bf8ddb47858a1093e903e8b427c63
parent7de6b56a63df87e12979a8b2a25d2ecf5d4ef145 (diff)
downloadQt-06bef623b0ae135ba539df1e4ae12267abd70784.zip
Qt-06bef623b0ae135ba539df1e4ae12267abd70784.tar.gz
Qt-06bef623b0ae135ba539df1e4ae12267abd70784.tar.bz2
BorderImage doc
-rw-r--r--src/declarative/fx/qfxborderimage.cpp26
1 files changed, 6 insertions, 20 deletions
diff --git a/src/declarative/fx/qfxborderimage.cpp b/src/declarative/fx/qfxborderimage.cpp
index 67b05fd..16677e0 100644
--- a/src/declarative/fx/qfxborderimage.cpp
+++ b/src/declarative/fx/qfxborderimage.cpp
@@ -52,32 +52,20 @@ QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,BorderImage,QFxBorderImage)
/*!
\qmlclass BorderImage QFxBorderImage
- \brief The BorderImage element allows you use an image as a border.
+ \brief The BorderImage element provides an image that can be used as a border.
\inherits Item
- Example:
- \qml
- BorderImage { border.left: 20; border.right: 10
- border.top: 14; border.bottom: 14
- width: 160; height: 160
- source: "pics/qtlogo.png"
- }
- \endqml
+ \snippet examples/declarative/border-image/example.qml 0
+
+ \image BorderImage.png
+
+ \sa examples/declarative/border-image
*/
/*!
\internal
\class QFxBorderImage BorderImage
\brief The QFxBorderImage class provides an image item that you can add to a QFxView.
-
- \ingroup group_coreitems
-
- Example:
- \qml
- BorderImage { source: "pics/star.png" }
- \endqml
-
- A QFxBorderImage object can be instantiated in Qml using the tag \l BorderImage.
*/
QFxBorderImage::QFxBorderImage(QFxItem *parent)
@@ -272,8 +260,6 @@ QFxScaleGrid *QFxBorderImage::border()
\o Repeat - Tile the image until there is no more space. May crop the last image.
\o Round - Like Repeat, but scales the images down to ensure that the last image is not cropped.
\endlist
-
- \sa examples/declarative/border-image
*/
QFxBorderImage::TileMode QFxBorderImage::horizontalTileMode() const
{