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

Method getYAMLStringImage

src/Mod/Material/App/MaterialValue.cpp:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267QString MaterialValue::getYAMLStringImage() const
268{
269 QString yaml;
270 yaml = QStringLiteral(" |-2");
271 QString base64 = getValue().toString();
272 while (!base64.isEmpty()) {
273 yaml += QStringLiteral("\n ") + base64.left(74);
274 base64.remove(0, 74);
275 }
276 return yaml;
277}
278
279QString MaterialValue::getYAMLStringList() const
280{

Callers

nothing calls this directly

Calls 5

leftMethod · 0.80
getValueFunction · 0.70
toStringMethod · 0.45
isEmptyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected