From 01bfa0e868a0696b8382deb4dd3c0ef12b584835 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Wed, 18 Mar 2026 12:49:50 +0100 Subject: kitemlistview: cancel editing when animation starts For this widget. If a file is being moved due due to external events, an animation may start, in which case we better cancel the edit. If we hook this at the animation start instead of checks spread out, we can't miss this cancellation anymore. KStandardItemListWidget gets a cancelRoleEditing slot to cleanly cancel editing and clean up its internal state. --- src/kitemviews/kitemlistview.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index 415710e02..c8ab796a9 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -446,6 +446,7 @@ protected Q_SLOTS: private Q_SLOTS: void slotAnimationFinished(QGraphicsWidget *widget, KItemListViewAnimation::AnimationType type); + void slotAnimationStarted(QGraphicsWidget *widget, KItemListViewAnimation::AnimationType type, const QVariant &endValue); void slotRubberBandPosChanged(); void slotRubberBandActivationChanged(bool active); -- cgit v1.3