diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-24 22:49:35 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-24 22:49:35 (GMT) |
commit | ac798c5d77c59ea8dfe29c9d1896fb6604e3a628 (patch) | |
tree | db0d1885e30b86edd944a426f5af92bf0ebb0095 /src/gui/util/qscroller_p.h | |
parent | 7913d2f438c498237d5e587513bc2a018ba56ec9 (diff) | |
parent | b668857b3749b39c3a61e0a25e750740b74df552 (diff) | |
download | Qt-ac798c5d77c59ea8dfe29c9d1896fb6604e3a628.zip Qt-ac798c5d77c59ea8dfe29c9d1896fb6604e3a628.tar.gz Qt-ac798c5d77c59ea8dfe29c9d1896fb6604e3a628.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-fire-staging:
Fixed spelling.
Various small fixes for the QScroller examples
Use qreal everywhere to avoid double/float errors on embedded platforms.
Fixed overshooting with a very low start velocity.
Fix Xrandr DPI calculation for NVidia TwinView.
Review and improve scroller documentation
Improve overshooting behaviour
Diffstat (limited to 'src/gui/util/qscroller_p.h')
-rw-r--r-- | src/gui/util/qscroller_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/util/qscroller_p.h b/src/gui/util/qscroller_p.h index 98f34f7..d16eef9 100644 --- a/src/gui/util/qscroller_p.h +++ b/src/gui/util/qscroller_p.h @@ -98,7 +98,8 @@ public: qreal startPos; qreal deltaPos; QEasingCurve curve; - qreal maxProgress; + qreal stopProgress; // whatever is.. + qreal stopPos; // ..reached first ScrollType type; }; @@ -122,7 +123,7 @@ public: void setDpiFromWidget(QWidget *widget); void updateVelocity(const QPointF &deltaPixelRaw, qint64 deltaTime); - void pushSegment(ScrollType type, qreal deltaTime, qreal startPos, qreal endPos, QEasingCurve::Type curve, Qt::Orientation orientation, qreal maxProgress = 1.0); + void pushSegment(ScrollType type, qreal deltaTime, qreal stopProgress, qreal startPos, qreal deltaPos, qreal stopPos, QEasingCurve::Type curve, Qt::Orientation orientation); void recalcScrollingSegments(bool forceRecalc = false); qreal scrollingSegmentsEndPos(Qt::Orientation orientation) const; bool scrollingSegmentsValid(Qt::Orientation orientation); |