If doLayout() is invoked with the 'NoAnimation' hint, it must be assured
that any ongoing animations are stopped.
- } else if (m_animation->isStarted(widget, KItemListViewAnimation::MovingAnimation)) {
- if (animate) {
- applyNewPos = false;
- } else {
- m_animation->stop(widget);
- }
// The size of the view might have been changed. Animate the moving of the position.
applyNewPos = !moveWidget(widget, itemBounds);
}
// The size of the view might have been changed. Animate the moving of the position.
applyNewPos = !moveWidget(widget, itemBounds);
}
+ } else {
+ m_animation->stop(widget);