PathView element with 1 item moves in wrong direction when dragged right
authorMartin Jones <martin.jones@nokia.com>
Wed, 27 Jun 2012 05:29:54 +0000 (15:29 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 27 Jun 2012 06:49:46 +0000 (08:49 +0200)
commit589d39ec6c35edc1ba195474be30dfcf8c31598d
tree733e9a8d6cad13a01fcd37437a2f89d2e33ca90b
parent630a481854f9dae38b48e1e5e83435746f38c5ae
PathView element with 1 item moves in wrong direction when dragged right

The shortest direction calculation used integer math to determine
which direction to move.  For an odd modelCount, the wrong direction
could be chosen.  For a modelCount of 1 it was particularly obvious.

Task-number: QTBUG-21337
Change-Id: I5e75c74153a5b4c62d1536226cd0703dcae04178
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/quick/items/qquickpathview.cpp