summaryrefslogtreecommitdiffstats
path: root/examples/declarative/ui-components/spinner/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/ui-components/spinner/main.qml')
-rw-r--r--examples/declarative/ui-components/spinner/main.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/declarative/ui-components/spinner/main.qml b/examples/declarative/ui-components/spinner/main.qml
new file mode 100644
index 0000000..6be567a
--- /dev/null
+++ b/examples/declarative/ui-components/spinner/main.qml
@@ -0,0 +1,18 @@
+import Qt 4.7
+import "content"
+
+Rectangle {
+ width: 240; height: 320
+ Column {
+ y: 20; x: 20; spacing: 20
+ Spinner {
+ id: spinner
+ width: 200; height: 240
+ focus: true
+ model: 20
+ itemHeight: 30
+ delegate: Text { font.pixelSize: 25; text: index; height: 30 }
+ }
+ Text { text: "Current item index: " + spinner.currentIndex }
+ }
+}