diff options
author | Bea Lam <bea.lam@nokia.com> | 2012-08-28 11:21:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 06:21:58 +0200 |
commit | 87679b3499e68957998b98bf13b6d98b3aa8b4c3 (patch) | |
tree | 4e6d613173a1e6abf5ef0afc65a615fd6b7fdbfe /src/qml/doc/src/syntax | |
parent | abaee0a83588f86740ea553ff7623a789b6b787a (diff) |
Docs - add missing images and code, clean up sections
Includes the removal of concepts/modelviewsdata/localstorage.qdoc
since that is a duplicate of the existing Local Storage module docs.
Also removes classes from whatsnew.qdoc that are internal.
Change-Id: I4170c1797bbec09bb67784b0b2ad67fd990365a8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'src/qml/doc/src/syntax')
-rw-r--r-- | src/qml/doc/src/syntax/basics.qdoc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/qml/doc/src/syntax/basics.qdoc b/src/qml/doc/src/syntax/basics.qdoc index abfa6d5c0e..3cca5cb3d3 100644 --- a/src/qml/doc/src/syntax/basics.qdoc +++ b/src/qml/doc/src/syntax/basics.qdoc @@ -83,8 +83,8 @@ Here is a simple object declaration: \qml Rectangle { - width: 200 - height: 200 + width: 100 + height: 100 color: "red" } \endqml @@ -97,8 +97,8 @@ The above object can be loaded by the engine if it is part of a \l{qtqml-documen import QtQuick 2.0 Rectangle { - width: 200 - height: 200 + width: 100 + height: 100 color: "red" } \endqml @@ -110,7 +110,7 @@ When placed into a \c .qml file and loaded by the QML engine, the above code cre \note If an object definition only has a small number of properties, it can be written on a single line like this, with the properties separated by semi-colons: \qml -Rectangle { width: 200; height: 200; color: "red" } +Rectangle { width: 100; height: 100; color: "red" } \endqml Obviously, the \l Rectangle object declared in this example is very simple indeed, as it defines nothing more than a few property values. To create more useful objects, an object declaration may define many other types of attributes: these are discussed in the \l{qtqml-syntax-objectattributes.html}{QML Object Attributes} documentation. Additionally, an object declaration may define child objects, as discussed below. @@ -127,8 +127,8 @@ which in turn contains two \l GradientStop declarations: import QtQuick 2.0 Rectangle { - width: 200 - height: 200 + width: 100 + height: 100 gradient: Gradient { GradientStop { position: 0.0; color: "yellow" } |