mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
New variables for conductor text formulas
This commit is contained in:
@@ -1505,7 +1505,7 @@ void Conductor::refreshText()
|
||||
{
|
||||
if (diagram())
|
||||
{
|
||||
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram());
|
||||
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram(), nullptr, this);
|
||||
m_properties.text = text;
|
||||
m_text_item->setPlainText(text);
|
||||
}
|
||||
@@ -1590,7 +1590,7 @@ void Conductor::setProperties(const ConductorProperties &property)
|
||||
{
|
||||
if (diagram())
|
||||
{
|
||||
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram());
|
||||
QString text = autonum::AssignVariables::formulaToLabel(m_properties.m_formula, m_autoNum_seq, diagram(), nullptr, this);
|
||||
m_properties.text = text;
|
||||
}
|
||||
else if (m_properties.text.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user