mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-05 18:54:14 +02:00
Merge branch 'feature/wires-per-terminal' into feature/wires-per-terminal-chains
# Conflicts: # sources/wiringrules.cpp
This commit is contained in:
@@ -235,3 +235,15 @@ QList<int> WiringRules::chainOrder(const QList<QPointF> &points)
|
||||
}
|
||||
return order;
|
||||
}
|
||||
|
||||
/**
|
||||
@brief WiringRules::turnsRuleOn
|
||||
@param before, after : the rules in force before and after a change
|
||||
@return true if the change turns on a rule that was off: QElectroTech
|
||||
then warns that the rules are experimental (review of #1272).
|
||||
*/
|
||||
bool WiringRules::turnsRuleOn(const Settings &before, const Settings &after)
|
||||
{
|
||||
return (after.max_wires > 0 && before.max_wires <= 0)
|
||||
|| (after.one_wire_per_report && !before.one_wire_per_report);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user