summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/focus.qdoc
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-07 08:26:35 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-07 08:26:35 (GMT)
commitfdec8807127844c55fcc0bb43ad0ab7db1d81a07 (patch)
treef1643e784ab2561bc8e74d3b6ab9ad60d9e59019 /doc/src/declarative/focus.qdoc
parent8a54ed9524befc4a172cdc19a18d9953f3a01df0 (diff)
parent68573410fb50d95a6ce27cd001d2e140b0b4aedd (diff)
downloadQt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.zip
Qt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.tar.gz
Qt-fdec8807127844c55fcc0bb43ad0ab7db1d81a07.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: doc/src/declarative/tutorial1.qdoc doc/src/declarative/tutorial2.qdoc doc/src/declarative/tutorial3.qdoc
Diffstat (limited to 'doc/src/declarative/focus.qdoc')
-rw-r--r--doc/src/declarative/focus.qdoc38
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/src/declarative/focus.qdoc b/doc/src/declarative/focus.qdoc
index 028b5f0..1e00bd9 100644
--- a/doc/src/declarative/focus.qdoc
+++ b/doc/src/declarative/focus.qdoc
@@ -58,12 +58,12 @@ the \c {KeyActions} element has \e {active focus} and pressing the
\o \code
Rectangle {
color: "lightsteelblue"; width: 240; height: 25
- Text { id: MyText }
+ Text { id: myText }
KeyActions {
focus: true
- keyA: "MyText.text = 'Key A was pressed'"
- keyB: "MyText.text = 'Key B was pressed'"
- keyC: "MyText.text = 'Key C was pressed'"
+ keyA: "myText.text = 'Key A was pressed'"
+ keyB: "myText.text = 'Key B was pressed'"
+ keyC: "myText.text = 'Key C was pressed'"
}
}
\endcode
@@ -92,23 +92,23 @@ Rectangle {
color: "red"; width: 240; height: 55
Rectangle {
color: "lightsteelblue"; width: 240; height: 25
- Text { id: MyText }
+ Text { id: myText }
KeyActions {
focus: true
- keyA: "MyText.text = 'Key A was pressed'"
- keyB: "MyText.text = 'Key B was pressed'"
- keyC: "MyText.text = 'Key C was pressed'"
+ keyA: "myText.text = 'Key A was pressed'"
+ keyB: "myText.text = 'Key B was pressed'"
+ keyC: "myText.text = 'Key C was pressed'"
}
}
Rectangle {
y: 30; focus: true
color: "lightsteelblue"; width: 240; height: 25
- Text { id: MyText }
+ Text { id: myText }
KeyActions {
focus: true
- keyA: "MyText.text = 'Key A was pressed'"
- keyB: "MyText.text = 'Key B was pressed'"
- keyC: "MyText.text = 'Key C was pressed'"
+ keyA: "myText.text = 'Key A was pressed'"
+ keyB: "myText.text = 'Key B was pressed'"
+ keyC: "myText.text = 'Key C was pressed'"
}
}
}
@@ -149,12 +149,12 @@ FocusScope {
width: 240; height: 25
Rectangle {
color: "lightsteelblue"; width: 240; height: 25
- Text { id: MyText }
+ Text { id: myText }
KeyActions {
focus: true
- keyA: "MyText.text = 'Key A was pressed'"
- keyB: "MyText.text = 'Key B was pressed'"
- keyC: "MyText.text = 'Key C was pressed'"
+ keyA: "myText.text = 'Key A was pressed'"
+ keyB: "myText.text = 'Key B was pressed'"
+ keyC: "myText.text = 'Key C was pressed'"
}
}
}
@@ -186,9 +186,9 @@ Rectangle {
\endcode
\o \code
FocusScope {
- id: Page; width: 240; height: 25
+ id: page; width: 240; height: 25
MyWidget { focus: true }
- MouseRegion { anchors.fill: parent; onClicked: { Page.focus = true } }
+ MouseRegion { anchors.fill: parent; onClicked: { page.focus = true } }
}
\endcode
\endtable
@@ -221,7 +221,7 @@ Rectangle {
color: "lightsteelblue"; width: 240; height: 320
ListView {
- id: MyView; anchors.fill: parent; focus: true
+ id: myView; anchors.fill: parent; focus: true
model: ListModel {
ListElement { name: "Bob" }
ListElement { name: "John" }