mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-30 15:50:52 +01:00
Element : variable assignement of label is now managed by an external class instead of the element itself
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4772 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -151,9 +151,9 @@ void CommentItem::updateLabel()
|
||||
* Draw Info to item text.
|
||||
* (draw this item in a QPicture)
|
||||
*/
|
||||
void CommentItem::addInfo(QPainter &painter, QString type){
|
||||
|
||||
QString text = m_element -> assignVariables(m_element -> elementInformations()[type].toString(), m_element);
|
||||
void CommentItem::addInfo(QPainter &painter, QString type)
|
||||
{
|
||||
QString text = autonum::AssignVariables::formulaToLabel(m_element -> elementInformations()[type].toString(), m_element->rSequenceStruct(), m_element->diagram(), m_element);
|
||||
bool must_show = m_element -> elementInformations().keyMustShow(type);
|
||||
|
||||
if (!text.isEmpty() && must_show)
|
||||
|
||||
Reference in New Issue
Block a user