From eeb31d201371c5e0a118d5d89616e0ed092c836b Mon Sep 17 00:00:00 2001 From: David Boddie Date: Tue, 8 Sep 2009 19:05:52 +0200 Subject: Doc: A timeline's current value is not reset when the duration changes. Task-number: 219152 Reviewed-by: Trust Me --- src/corelib/tools/qtimeline.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/tools/qtimeline.cpp b/src/corelib/tools/qtimeline.cpp index 052c456..28ec963 100644 --- a/src/corelib/tools/qtimeline.cpp +++ b/src/corelib/tools/qtimeline.cpp @@ -388,6 +388,10 @@ void QTimeLine::setDirection(Direction direction) By default, this value is 1000 (i.e., 1 second), but you can change this by either passing a duration to QTimeLine's constructor, or by calling setDuration(). The duration must be larger than 0. + + \note Changing the duration does not cause the current time to be reset + to zero or the new duration. You also need to call setCurrentTime() with + the desired value. */ int QTimeLine::duration() const { -- cgit v0.12