--- a/examples/declarative/ui-components/spinner/content/Spinner.qml Tue Jul 06 15:10:48 2010 +0300
+++ b/examples/declarative/ui-components/spinner/content/Spinner.qml Wed Aug 18 10:37:55 2010 +0300
@@ -45,21 +45,26 @@
property alias delegate: view.delegate
property alias currentIndex: view.currentIndex
property real itemHeight: 30
+
source: "spinner-bg.png"
clip: true
+
PathView {
id: view
anchors.fill: parent
+
pathItemCount: height/itemHeight
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
highlight: Image { source: "spinner-select.png"; width: view.width; height: itemHeight+4 }
dragMargin: view.width/2
+
path: Path {
startX: view.width/2; startY: -itemHeight/2
PathLine { x: view.width/2; y: view.pathItemCount*itemHeight + itemHeight }
}
}
+
Keys.onDownPressed: view.incrementCurrentIndex()
Keys.onUpPressed: view.decrementCurrentIndex()
}