Merge branch 'feature/wires-per-terminal' into feature/wires-per-terminal-chains

# Conflicts:
#	sources/wiringrules.cpp
This commit is contained in:
ispyisail
2026-10-04 01:43:37 +13:00
8 changed files with 60 additions and 42 deletions
+12
View File
@@ -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);
}