diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-26 03:21:47 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-26 03:21:47 (GMT) |
commit | 1a9eeae1ee92516abd2278b0ebf23687ff865cd7 (patch) | |
tree | 65356c69d0f2da63a873cad66d8c20e8850bd9a7 /doc/src/declarative/tutorial2.qdoc | |
parent | 70fd3ba7e743c67ab3f64a9e22d11642139e6254 (diff) | |
download | Qt-1a9eeae1ee92516abd2278b0ebf23687ff865cd7.zip Qt-1a9eeae1ee92516abd2278b0ebf23687ff865cd7.tar.gz Qt-1a9eeae1ee92516abd2278b0ebf23687ff865cd7.tar.bz2 |
doc fixes
Diffstat (limited to 'doc/src/declarative/tutorial2.qdoc')
-rw-r--r-- | doc/src/declarative/tutorial2.qdoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/declarative/tutorial2.qdoc b/doc/src/declarative/tutorial2.qdoc index 9c1e98b..c6fd06b 100644 --- a/doc/src/declarative/tutorial2.qdoc +++ b/doc/src/declarative/tutorial2.qdoc @@ -46,7 +46,7 @@ Rectangle { y: 30 anchors.horizontalCenter: Page.horizontalCenter } - GridLayout { + Grid { id: ColorPicker x: 0 anchors.bottom: Page.bottom @@ -91,7 +91,7 @@ Rectangle { Our cell component is basically a colored rectangle. -The \c anchors.fill property is a convenient way to set the size of an element. In this case the \c Rect will have the same size as its parent. +The \c anchors.fill property is a convenient way to set the size of an element. In this case the \c Rectangle will have the same size as its parent. We bind the \c color property of this \c Rectangle to the color property of our component. @@ -109,7 +109,7 @@ The \c onClicked property sets the \c color property of the element named \e Hel \section2 The main QML file \code -GridLayout { +Grid { id: ColorPicker x: 0 anchors.bottom: Page.bottom @@ -124,7 +124,7 @@ GridLayout { } \endcode -In the main QML file, the only thing we have to do is to create a color picker by putting 6 cells with different colors in a grid layout. +In the main QML file, the only thing we have to do is to create a color picker by putting 6 cells with different colors in a grid. [Previous: \l tutorial1] [Next: \l tutorial3] |