summaryrefslogtreecommitdiffstats
path: root/examples/declarative/searchbox/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/searchbox/main.qml')
-rw-r--r--examples/declarative/searchbox/main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/declarative/searchbox/main.qml b/examples/declarative/searchbox/main.qml
new file mode 100644
index 0000000..39c3720
--- /dev/null
+++ b/examples/declarative/searchbox/main.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+Rectangle {
+ width: 500; height: 250; color: "#edecec"
+
+ Column {
+ anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: parent.verticalCenter; spacing: 10
+
+ SearchBox { id: search1; KeyNavigation.down: search2; focus: true }
+ SearchBox { id: search2; KeyNavigation.up: search1; KeyNavigation.down: search3 }
+ SearchBox { id: search3; KeyNavigation.up: search2 }
+ }
+}