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:
Claveau Joshua
2020-03-26 15:29:15 +01:00
parent f7a090c3ca
commit fb7cc6fd3e
291 changed files with 1581 additions and 1581 deletions

View File

@@ -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);
}
}