Overridden properties of terminal elements are now saved/loaded from project

The overridden properties of terminal elements made in the terminal
strip dialog are now saved and loaded from/to the project file.
This commit is contained in:
joshua
2021-09-20 18:34:48 +02:00
parent 67dbc798aa
commit 377f8b1521
10 changed files with 125 additions and 29 deletions

View File

@@ -200,6 +200,21 @@ bool ElementData::terminalLed() const
m_terminal_led;
}
/**
* @brief ElementData::terminalPropertiesIsOverrided
* @return true if at least one sub properties of terminal type is overrided
*/
bool ElementData::terminalPropertiesIsOverrided() const
{
if (m_terminal_type_is_override
|| m_terminal_function_is_override
|| m_terminal_led_is_override) {
return true;
}
return false;
}
bool ElementData::operator==(const ElementData &data) const
{
if (data.m_type != m_type) {