equal
deleted
inserted
replaced
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 |