src/corelib/tools/qtimeline.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   123 
   123 
   124     int currentFrame = q->frameForTime(currentTime);
   124     int currentFrame = q->frameForTime(currentTime);
   125 #ifdef QTIMELINE_DEBUG
   125 #ifdef QTIMELINE_DEBUG
   126     qDebug() << "QTimeLinePrivate::setCurrentTime: frameForTime" << currentTime << currentFrame;
   126     qDebug() << "QTimeLinePrivate::setCurrentTime: frameForTime" << currentTime << currentFrame;
   127 #endif
   127 #endif
   128     if (lastValue != q->currentValue())
   128     if (!qFuzzyCompare(lastValue, q->currentValue()))
   129         emit q->valueChanged(q->currentValue());
   129         emit q->valueChanged(q->currentValue());
   130     if (lastFrame != currentFrame) {
   130     if (lastFrame != currentFrame) {
   131         const int transitionframe = (direction == QTimeLine::Forward ? endFrame : startFrame);
   131         const int transitionframe = (direction == QTimeLine::Forward ? endFrame : startFrame);
   132         if (looping && !finished && transitionframe != currentFrame) {
   132         if (looping && !finished && transitionframe != currentFrame) {
   133 #ifdef QTIMELINE_DEBUG
   133 #ifdef QTIMELINE_DEBUG