26 QDomElement root = xmlDoc.createElement(
"Preset");
30 xmlDoc.appendChild(root);
32 return xmlDoc.toString();
39 if (!xmlDoc.setContent(xml)) {
40 qWarning() <<
"XML string format is invalid!";
44 d->
preset->fromXML(xmlDoc.documentElement(),
d->
preset->resourcesInterface());
void fromXML(const QString &xml)
fromXML convert the preset settings into a preset formatted xml.
QString toXML() const
toXML convert the preset settings into a preset formatted xml.
Preset(Resource *resource)
KoResourceSP resource() const
KisPaintOpPresetSP preset