aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-09-29 13:21:09 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-09-30 06:14:10 +0200
commitc8f1ed8e514ad25474125343a7f98f6ca60a886c (patch)
tree8b0ee467ecad1b1de42a4408ce1ea9e458629df5
parent29b77e5e0759472ab1f7da1dd756b857d3b2ddd7 (diff)
Fix example in scope documentation
The example tried to demonstrate the use of direct access to properties of the root component object, but unfortunately it also defined an id property that clashed with it. Therefore the provided example did not work as intended and produced a "stringified" object reference instead of the text of the "title" property. This patch changes the id to avoid a clash. Change-Id: Ib9abcf48482773a0dcdf5e2375d1445d87ccf4ef Reviewed-by: Michael Brasser <michael.brasser@live.com>
-rw-r--r--src/qml/doc/src/qmllanguageref/documents/scope.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/doc/src/qmllanguageref/documents/scope.qdoc b/src/qml/doc/src/qmllanguageref/documents/scope.qdoc
index af59afe1fb..67ae881908 100644
--- a/src/qml/doc/src/qmllanguageref/documents/scope.qdoc
+++ b/src/qml/doc/src/qmllanguageref/documents/scope.qdoc
@@ -163,14 +163,14 @@ Item {
property string title
Text {
- id: title
+ id: titletype
text: "<b>" + title + "</b>"
font.pixelSize: 22
anchors.top: parent.top
}
Text {
- text: title.text
+ text: titletype.text
font.pixelSize: 18
anchors.bottom: parent.bottom
}