summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qscroller_p.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2011-01-26 13:17:08 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-26 13:17:08 (GMT)
commitb0390e68893dd04076434695be5e676b87bc067c (patch)
tree60543fd8cf8c72f530a8865fa8fc2306bb52b9ba /src/gui/util/qscroller_p.h
parent537312d5dea24bd404666789119a5ad1bab04396 (diff)
parent57a4353c8e082dfc0f536a1e642e4a8df0e5b9c9 (diff)
downloadQt-b0390e68893dd04076434695be5e676b87bc067c.zip
Qt-b0390e68893dd04076434695be5e676b87bc067c.tar.gz
Qt-b0390e68893dd04076434695be5e676b87bc067c.tar.bz2
Merge branch 'master' into lighthouse-master
Diffstat (limited to 'src/gui/util/qscroller_p.h')
-rw-r--r--src/gui/util/qscroller_p.h5
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);