Remove retro compatibility of element text item prior to qet 0.7

Compatibility is not maintained anymore with the old project which
contain old element text item.
This commit is contained in:
joshua
2021-02-25 19:35:04 +01:00
parent b71aec9548
commit 1f53c39290
3 changed files with 1 additions and 286 deletions

View File

@@ -222,11 +222,6 @@ void DiagramEventAddElement::addElement()
element -> setPos(m_element->pos());
element -> setRotation(m_element -> rotation());
m_diagram -> addItem(element);
//The element is dropped by the user, the dynamic text field stored in m_converted_text_from_xml_description
//can be moved to m_dynamic_text_list, because we are sure fromXml will be not called.
element->m_dynamic_text_list.append(element->m_converted_text_from_xml_description.keys());
element->m_converted_text_from_xml_description.clear();
QUndoCommand *undo_object = new QUndoCommand(tr("Ajouter %1").arg(element->name()));
new AddGraphicsObjectCommand(element, m_diagram, m_element -> pos(), undo_object);