new text mode editor
This commit is contained in:
@@ -322,3 +322,14 @@ class EditTextDefinitionCommand(QUndoCommand):
|
||||
|
||||
def undo(self) -> None:
|
||||
self.controller._set_text_definition(self.component_id, self.old)
|
||||
|
||||
def id(self) -> int:
|
||||
return 1001
|
||||
|
||||
def mergeWith(self, other: QUndoCommand) -> bool: # noqa: N802
|
||||
if not isinstance(other, EditTextDefinitionCommand):
|
||||
return False
|
||||
if other.component_id != self.component_id:
|
||||
return False
|
||||
self.new = other.new
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user