main qlm clean-up !!!
authorCuong Le <metacuong@gmail.com>
Sun, 28 Aug 2011 09:06:18 +0000 (16:06 +0700)
committerCuong Le <metacuong@gmail.com>
Sun, 28 Aug 2011 09:06:18 +0000 (16:06 +0700)
qml/LichViet/main.qml

index 805f0a0..0670532 100644 (file)
@@ -160,9 +160,9 @@ Item {
                           delegate: delegate
                           pathItemCount: 3
                           clip: true
+                          Keys.onLeftPressed: decrementCurrentIndex()
+                          Keys.onRightPressed: incrementCurrentIndex()
                           highlightMoveDuration:500
-                          Keys.onDownPressed: if (!moving && interactive) incrementCurrentIndex()
-                          Keys.onUpPressed: if (!moving && interactive) decrementCurrentIndex()
                           preferredHighlightBegin: 0.5
                           preferredHighlightEnd: 0.5
                           highlightRangeMode: PathView.StrictlyEnforceRange
@@ -181,7 +181,9 @@ Item {
                               startY: 50
                               PathLine {x: reelx.width; y: 50}
                           }
-                          onFlickEnded : {
+
+                          onMovementStarted:{
+
                           }
 
                           onMovementEnded: {