diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-08-14 02:56:13 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-08-14 02:56:13 (GMT) |
commit | c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed (patch) | |
tree | e2618da2b6ce8c4d3ceeecfe66d7fb133068be01 /doc/src/declarative/tutorial1.qdoc | |
parent | da56f50eb640823e2d48c1308c09626a428a50f5 (diff) | |
download | Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.zip Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.tar.gz Qt-c7aef9c3a3a9c4b2fcebb9f55ae11fc0b590a9ed.tar.bz2 |
Get rid of QmlFont and use the QFont value type instead.
Diffstat (limited to 'doc/src/declarative/tutorial1.qdoc')
-rw-r--r-- | doc/src/declarative/tutorial1.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/declarative/tutorial1.qdoc b/doc/src/declarative/tutorial1.qdoc index 5c11326..d38dc54 100644 --- a/doc/src/declarative/tutorial1.qdoc +++ b/doc/src/declarative/tutorial1.qdoc @@ -18,7 +18,7 @@ Rect { Text { id: HelloText text: "Hello world!" - font.size: 24 + font.pointSize: 24 font.bold: true y: 30 anchors.horizontalCenter: Page.horizontalCenter @@ -49,7 +49,7 @@ The \l Rect element contains many other properties (such as \c x and \c y), but Text { id: HelloText text: "Hello world!" - font.size: 24 + font.pointSize: 24 font.bold: true y: 30 anchors.horizontalCenter: Page.horizontalCenter @@ -60,7 +60,7 @@ We add a text element as a child of our root element to display the text 'Hello The \c y property is used to position the text vertically at 30 pixels from the top of its parent. -The \c font.size and \c font.bold properties are related to fonts and use the \e 'dot' notation. +The \c font.pointSize and \c font.bold properties are related to fonts and use the \e 'dot' notation. The \c anchors.horizontalCenter property refers to the horizontal center of an element. In this case, we specify that our text element should be horizontally centered in the \e Page element. |