summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/focus/focusColumn.qml
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2010-12-09 11:43:04 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2010-12-09 11:43:04 (GMT)
commit3b20e58b9494549713b492e35af6531b4bc179c9 (patch)
tree9ae3fb2e2d02a78f6f2fe36adaad364170fd704c /doc/src/snippets/declarative/focus/focusColumn.qml
parentbd4ac06eb3c8ac3a9044689481873ce91aeb3180 (diff)
parent91518478d32a5d5ce188b02f92e744fc782dd687 (diff)
downloadQt-3b20e58b9494549713b492e35af6531b4bc179c9.zip
Qt-3b20e58b9494549713b492e35af6531b4bc179c9.tar.gz
Qt-3b20e58b9494549713b492e35af6531b4bc179c9.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-team into 4.7
Diffstat (limited to 'doc/src/snippets/declarative/focus/focusColumn.qml')
-rw-r--r--doc/src/snippets/declarative/focus/focusColumn.qml25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/focus/focusColumn.qml b/doc/src/snippets/declarative/focus/focusColumn.qml
new file mode 100644
index 0000000..eb59309
--- /dev/null
+++ b/doc/src/snippets/declarative/focus/focusColumn.qml
@@ -0,0 +1,25 @@
+import QtQuick 1.0
+
+Rectangle {
+ width: 200; height: 200
+
+ // Column {
+ FocusScope {
+ x: rect1.x; y:rect1.y; width: rect1.width; height: rect1.height
+ Rectangle {id: rect1; width: 50; height: 50; focus:true
+ color: focus ? "red":"blue"
+ }
+ Rectangle {id: rect2; width: 50; height: 50; focus:true
+ color: focus ? "red":"blue"
+ y: 75
+ }
+// }
+/*
+ FocusScope {
+ x: rect2.x; y:rect2.y; width: rect2.width; height: rect2.height
+ Rectangle {id: rect2; width: 50; height: 50; color: "red"}
+ }
+*/
+ }
+
+}