From e021901a0d89a0e55429f34baf03364105344b0c Mon Sep 17 00:00:00 2001 From: Cuong Le Date: Sun, 28 Aug 2011 16:06:18 +0700 Subject: [PATCH] main qlm clean-up !!! --- qml/LichViet/main.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qml/LichViet/main.qml b/qml/LichViet/main.qml index 805f0a0..0670532 100644 --- a/qml/LichViet/main.qml +++ b/qml/LichViet/main.qml @@ -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: { -- 1.7.9.5