diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-06 05:30:18 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-04-06 05:30:18 (GMT) |
commit | 8c6f2fdf09eb2998cb013659ca7a2154792ffa98 (patch) | |
tree | c13bb27adf01e18cd3a8313343af9b2321b2dd61 /src/declarative/graphicsitems/qdeclarativegridview.cpp | |
parent | dc7385b41bf81e6c12dbd3c33c2bea577e067970 (diff) | |
parent | 160f1867868cdea916923652b00484ed11f90aaa (diff) | |
download | Qt-8c6f2fdf09eb2998cb013659ca7a2154792ffa98.zip Qt-8c6f2fdf09eb2998cb013659ca7a2154792ffa98.tar.gz Qt-8c6f2fdf09eb2998cb013659ca7a2154792ffa98.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Improve Flickable dynamics and allow platform specific tweaking.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index b890c4f..cb1f6dc 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -1115,6 +1115,7 @@ void QDeclarativeGridViewPrivate::fixup(AxisData &data, qreal minExtent, qreal m } else { QDeclarativeFlickablePrivate::fixup(data, minExtent, maxExtent); } + data.inOvershoot = false; fixupMode = Normal; } @@ -1196,7 +1197,7 @@ void QDeclarativeGridViewPrivate::flick(AxisData &data, qreal minExtent, qreal m accel = v2 / (2.0f * qAbs(dist)); } else { data.flickTarget = velocity > 0 ? minExtent : maxExtent; - overshootDist = overShoot ? overShootDistance(v, vSize) : 0; + overshootDist = overShoot ? overShootDistance(vSize) : 0; } timeline.reset(data.move); timeline.accel(data.move, v, accel, maxDistance + overshootDist); |