Commit 9ef1dad7 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Load Warning Colors properly from file.

Now the out of gamut warning can be written into file as XML
and loaded from file as XML.

Ref T2337
parent 6a57cf08
......@@ -302,12 +302,11 @@ KisImageWSP KisKraLoader::loadXML(const KoXmlElement& element)
qDebug()<<"Warning color found but can't be loaded because the loading code is incomplete, fixme!";
//how do I convert a koxmlelement to a qdomelement???
//QDomElement eq = child.toElement();
//QString depth ="U8";
//proofingConfig->warningColor = KoColor::fromXML(eq, depth, QHash<QString, QString>());
QDomDocument dom;
KoXml::asQDomElement(dom, e);
QDomElement eq = dom.firstChildElement();
proofingConfig->warningColor = KoColor::fromXML(eq.firstChildElement(),, QHash<QString, QString>());
if (e.tagName().toLower() == "animation") {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment