diff options
author | Blaine | 2020-05-28 11:31:18 +0530 |
---|---|---|
committer | Blaine | 2020-05-28 11:31:18 +0530 |
commit | bfa54b1ee6857bdade637b581c18ac2cf6f96905 (patch) | |
tree | 7abe1e7d4634bfc13d53970c169982753fbd6cdb /src/main/python/utils/undo.py | |
parent | 7606d7bb27ce1f9de890f4c8a84232f4649c62bf (diff) | |
download | Chemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.tar.gz Chemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.tar.bz2 Chemical-PFD-bfa54b1ee6857bdade637b581c18ac2cf6f96905.zip |
upstream undo
Diffstat (limited to 'src/main/python/utils/undo.py')
-rw-r--r-- | src/main/python/utils/undo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py index 3a64d41..cf539e7 100644 --- a/src/main/python/utils/undo.py +++ b/src/main/python/utils/undo.py @@ -11,6 +11,10 @@ regex = compile(r"([a-z][A-Z])") def objectName(obj): name = regex.sub(repl, obj.m_type if obj.__class__.__name__ == 'NodeItem' else obj.__class__.__name__) + # if obj.__class__.__name__ != 'line': + # name = 'Draw ' + name[0].upper() + name[1:] + # else: + # name = 'Add ' + return name[0].upper() + name[1:] + ' symbol' class addCommand(QUndoCommand): |