mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user