Element text item with are now converted to dynamic element text item.

From now, the class ElementTextItem is not anymore use in qet. Every texts in a diagram are DynamicElementTextItem.
the Xref item was adapted to dynamic text.
Previously, the comment and location, displayed as a "static text" below the "old text" tagged "label" are now automaticaly converted to DynamicElementTextItem, so visually, these texts stay unchanged 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5216 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-01-19 12:17:20 +00:00
parent 649f8519c6
commit d85e395b46
17 changed files with 856 additions and 305 deletions

View File

@@ -20,6 +20,7 @@
#include "qetapp.h"
#include "elementtextitem.h"
#include "diagram.h"
#include "dynamicelementtextitem.h"
/**
* @brief SlaveElement::SlaveElement
@@ -33,7 +34,8 @@ SlaveElement::SlaveElement(const ElementsLocation &location, QGraphicsItem *qgi,
CustomElement(location, qgi, state)
{
m_xref_item = nullptr;
link_type_ = Slave;
m_link_type = Slave;
connect(this, SIGNAL(updateLabel()), this, SLOT(updateLabel()));
}