mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-07 14:12:33 +01:00
Element info keys : replace all -(minus) by _(underscore)
This change will brake all information with -(minus) from projects created before this commit, but in the other side the use of data bases for QET will be more easily to understand by avoid to replace the -(minus) by _(underscore) in the tables of data bases. Sorry for that, it's for your good.
This commit is contained in:
@@ -1145,7 +1145,7 @@ void DynamicElementTextItem::conductorPropertiesChanged()
|
||||
{
|
||||
if(m_info_name == "function")
|
||||
setPlainText(m_watched_conductor? m_watched_conductor.data()->properties().m_function : "");
|
||||
else if (m_info_name == "tension-protocol")
|
||||
else if (m_info_name == "tension_protocol")
|
||||
setPlainText(m_watched_conductor? m_watched_conductor.data()->properties().m_tension_protocol : "");
|
||||
}
|
||||
else if (m_text_from == CompositeText) {
|
||||
@@ -1179,8 +1179,8 @@ QString DynamicElementTextItem::reportReplacedCompositeText() const
|
||||
{
|
||||
if(string.contains("%{function}"))
|
||||
string.replace("%{function}", m_watched_conductor.data()->properties().m_function);
|
||||
if(string.contains("%{tension-protocol}"))
|
||||
string.replace("%{tension-protocol}", m_watched_conductor.data()->properties().m_tension_protocol);
|
||||
if(string.contains("%{tension_protocol}"))
|
||||
string.replace("%{tension_protocol}", m_watched_conductor.data()->properties().m_tension_protocol);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user