You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A drag counter in the command id. mouseReleaseEvent increments it.
beginMacro and endMacro of QUndoStack around a drag.
Keep it and document it.
I prefer option 1. It is the smallest change.
Tests:
Two separate drags are two undo steps.
One drag with many move events is one undo step.
Problem to be solved
MoveNodeCommand::mergeWith merges every move of the same nodes. Drag node A, release, drag A again: one undo reverts both drags. Users expect one undo step per drag.
Prior art
No response
Additional context
This is how it worked before. It was restored by the fix for #525 and #526.
Checklist
I have verified that this feature request has not been logged before, by searching the issue tracker for similar requests
Activity