From da87fe823c6e249de20ea6a38482b387dcfbbef7 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Wed, 28 Oct 2009 14:50:54 +1000 Subject: Cancel flicking on increment/decrementIndex also. --- src/declarative/fx/qfxlistview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp index 49c2d11..15680e1 100644 --- a/src/declarative/fx/qfxlistview.cpp +++ b/src/declarative/fx/qfxlistview.cpp @@ -1628,6 +1628,7 @@ void QFxListView::incrementCurrentIndex() Q_D(QFxListView); if (currentIndex() < d->model->count() - 1 || d->wrap) { int index = currentIndex()+1; + cancelFlick(); d->updateCurrent(index < d->model->count() ? index : 0); } } @@ -1643,6 +1644,7 @@ void QFxListView::decrementCurrentIndex() Q_D(QFxListView); if (currentIndex() > 0 || d->wrap) { int index = currentIndex()-1; + cancelFlick(); d->updateCurrent(index >= 0 ? index : d->model->count()-1); } } -- cgit v0.12