diff options
| author | Méven Car <[email protected]> | 2026-03-18 12:49:50 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-03-19 09:23:37 +0000 |
| commit | 01bfa0e868a0696b8382deb4dd3c0ef12b584835 (patch) | |
| tree | 4a8ebcedf53c445316b142c8a8786fb1696e03f0 /src/kitemviews/kitemlistview.h | |
| parent | 2d7b8530e2cbf30d2ff7ee8a3ff66dd4aa6a632d (diff) | |
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.
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
| -rw-r--r-- | src/kitemviews/kitemlistview.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
