diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-12-03 00:50:43 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-12-03 00:56:37 (GMT) |
commit | fe63d0ee5671ec4f0a1926ad8875b9f11789b105 (patch) | |
tree | 1ba5b6111642292b7d9a1142a6712c669a3c50be /doc/src/declarative/tutorial.qdoc | |
parent | 89f4a877c401e1ab18d3ed520d17440b3e9078e7 (diff) | |
download | Qt-fe63d0ee5671ec4f0a1926ad8875b9f11789b105.zip Qt-fe63d0ee5671ec4f0a1926ad8875b9f11789b105.tar.gz Qt-fe63d0ee5671ec4f0a1926ad8875b9f11789b105.tar.bz2 |
Add 'Writing New Components' docs, and document the connect() function.
The 'Writing QML Components' is mainly a restructuring of the
'Extending types from QML' page. It also documents the signal
connect() function that was previously undocumented.
Task-number: QTBUG-15718, QTBUG-15138
Diffstat (limited to 'doc/src/declarative/tutorial.qdoc')
-rw-r--r-- | doc/src/declarative/tutorial.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/tutorial.qdoc b/doc/src/declarative/tutorial.qdoc index 8467478..d8139b4 100644 --- a/doc/src/declarative/tutorial.qdoc +++ b/doc/src/declarative/tutorial.qdoc @@ -124,7 +124,7 @@ Our color picker is made of six cells with different colors. To avoid writing the same code multiple times for each cell, we create a new \c Cell component. A component provides a way of defining a new type that we can re-use in other QML files. A QML component is like a black-box and interacts with the outside world through properties, signals and functions and is generally -defined in its own QML file. (For more details, see \l {Defining new Components}). +defined in its own QML file. (For more details, see \l {Defining New Components}). The component's filename must always start with a capital letter. Here is the QML code for \c Cell.qml: @@ -144,7 +144,7 @@ An \l Item is the most basic visual element in QML and is often used as a contai We declare a \c cellColor property. This property is accessible from \e outside our component, this allows us to instantiate the cells with different colors. -This property is just an alias to an existing property - the color of the rectangle that compose the cell (see \l{Adding new properties}). +This property is just an alias to an existing property - the color of the rectangle that compose the cell (see \l{Adding Properties}). \snippet examples/declarative/tutorials/helloworld/Cell.qml 5 |