summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/focus.qdoc
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-17 04:44:25 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-05-17 04:45:59 (GMT)
commita0c9a0feebb571e339c0ea886996f543d2d8c752 (patch)
tree2af8b37d98be5cae7000866e8e8f55566edbd712 /doc/src/declarative/focus.qdoc
parente86732a38bc601c51a41400c1000b857b71f2e75 (diff)
downloadQt-a0c9a0feebb571e339c0ea886996f543d2d8c752.zip
Qt-a0c9a0feebb571e339c0ea886996f543d2d8c752.tar.gz
Qt-a0c9a0feebb571e339c0ea886996f543d2d8c752.tar.bz2
Add focus docs snippets
Diffstat (limited to 'doc/src/declarative/focus.qdoc')
-rw-r--r--doc/src/declarative/focus.qdoc23
1 files changed, 1 insertions, 22 deletions
diff --git a/doc/src/declarative/focus.qdoc b/doc/src/declarative/focus.qdoc
index e5c1d32..e2b8bb6 100644
--- a/doc/src/declarative/focus.qdoc
+++ b/doc/src/declarative/focus.qdoc
@@ -291,28 +291,7 @@ print the name of the current list item.
\table
\row
-\o \code
-Rectangle {
- color: "lightsteelblue"; width: 240; height: 320
-
- ListView {
- id: myView; anchors.fill: parent; focus: true
- model: ListModel {
- ListElement { name: "Bob" }
- ListElement { name: "John" }
- ListElement { name: "Michael" }
- }
- delegate: FocusScope {
- width: contents.width; height: contents.height
- Text {
- focus: true
- text: name
- Keys.onReturnPressed: console.log(name)
- }
- }
- }
-}
-\endcode
+\o \snippet doc/src/snippets/declarative/focusscopes.qml 0
\o \image declarative-qmlfocus4.png
\endtable