| 77 | }; |
| 78 | |
| 79 | void YUViewDomElement::appendProperiteChild(const QString & type, |
| 80 | const QString & name, |
| 81 | const QStringPairList &attributes) |
| 82 | { |
| 83 | auto newChild = ownerDocument().createElement(type); |
| 84 | newChild.appendChild(ownerDocument().createTextNode(name)); |
| 85 | for (int i = 0; i < attributes.length(); i++) |
| 86 | newChild.setAttribute(attributes[i].first, attributes[i].second); |
| 87 | appendChild(newChild); |
| 88 | } |
| 89 | |
| 90 | void YUViewDomElement::setAttribute(const std::string &name, const std::string &value) |
| 91 | { |
no test coverage detected