MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / isLinkedToConfigurableObject

Method isLinkedToConfigurableObject

src/App/Link.cpp:728–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728bool LinkBaseExtension::isLinkedToConfigurableObject() const
729{
730 if (auto linked = getLinkedObjectValue()) {
731 std::vector<App::Property*> propList;
732 linked->getPropertyList(propList);
733 for (auto prop : propList) {
734 if (prop->testStatus(Property::CopyOnChange) && prop->getContainer() == linked) {
735 return true;
736 }
737 }
738 }
739 return false;
740}
741
742bool LinkBaseExtension::isCopyOnChangeProperty(DocumentObject* obj, const App::Property& prop)
743{

Callers 1

setupContextMenuMethod · 0.80

Calls 3

getPropertyListMethod · 0.45
testStatusMethod · 0.45
getContainerMethod · 0.45

Tested by

no test coverage detected