| 2500 | } |
| 2501 | |
| 2502 | utility::Uuid Module::create_qml_item(const std::string &qml_code) { |
| 2503 | |
| 2504 | auto name = fmt::format("QML_ITEM{}", attributes_.size()); |
| 2505 | auto attr = new BooleanAttribute(name, name, false); |
| 2506 | attr->set_role_data(Attribute::QmlCode, qml_code); |
| 2507 | add_attribute(static_cast<Attribute *>(attr)); |
| 2508 | expose_attribute_in_model_data(attr, "dynamic qml items", true); |
| 2509 | attr->set_value(true); |
| 2510 | return attr->uuid(); |
| 2511 | } |
no test coverage detected