https://bugs.kde.org/show_bug.cgi?id=426770

--- Comment #1 from link...@testrun.org ---
> Underlying stackView .push method has "immediate" option for that

This is incorrect. I have read the code again and it seems StackView has
nothing to do with this bug.

PageRow contains StackView which is initialized with one layer of ColumnView.
ColumnView, which is written in C++, does all the animations. In the attached
example StackView always contains one item.

Because ColumnView does not have a specialized method to replace item (only
addItem, insertItem, moveItem, removeItem, pop and clear), there is no way to
replace item without animation.

I have been able to completely disable animation by ignoring m_shouldAnimate
stored in ContentItem. ContentItem is implemented in
kirigami/src/columnview_p.h.

I will try to prepare a patch adding ColumnView::replaceItem method that
replaces items without animations and modify PageRow.qml to actually use it
when items are replaced.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to