QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
anonymous_namespace{masterelement.cpp} Namespace Reference

MasterElement::contactUsage Count the slave contacts currently linked to this master, by type. This is the single place where that count is worked out: the cross ref item, the properties dialog and the link widgets all read it from here, so they cannot disagree with each other. More...

Functions

ContactUsage::Type contactType (ElementData::SlaveState state)

Detailed Description

MasterElement::contactUsage Count the slave contacts currently linked to this master, by type. This is the single place where that count is worked out: the cross ref item, the properties dialog and the link widgets all read it from here, so they cannot disagree with each other.

Returns
the per type usage

Function Documentation

◆ contactType()

ContactUsage::Type anonymous_namespace{masterelement.cpp}::contactType ( ElementData::SlaveState state)

Map the element data's contact type onto the tally's own, so that the used count and the declared capacity cannot classify the same contact type differently.