Changeset View
Changeset View
Standalone View
Standalone View
libs/image/recorder/kis_recorded_paint_action.cpp
Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Line(s) | |||||
432 | } | 432 | } | ||
433 | 433 | | |||
434 | KoColor KisRecordedPaintActionFactory::colorFromXML(const QDomElement& elt, const QString& elementName) | 434 | KoColor KisRecordedPaintActionFactory::colorFromXML(const QDomElement& elt, const QString& elementName) | ||
435 | { | 435 | { | ||
436 | QDomElement colorElt = elt.firstChildElement(elementName); | 436 | QDomElement colorElt = elt.firstChildElement(elementName); | ||
437 | KoColor bC; | 437 | KoColor bC; | ||
438 | 438 | | |||
439 | if (!colorElt.isNull()) { | 439 | if (!colorElt.isNull()) { | ||
440 | bC = KoColor::fromXML(colorElt.firstChildElement(), Integer8BitsColorDepthID.id(), QHash<QString, QString>()); | 440 | bC = KoColor::fromXML(colorElt.firstChildElement(), Integer8BitsColorDepthID.id()); | ||
441 | bC.setOpacity(quint8(255)); | 441 | bC.setOpacity(quint8(255)); | ||
442 | dbgImage << elementName << " color : " << bC.toQColor(); | 442 | dbgImage << elementName << " color : " << bC.toQColor(); | ||
443 | } else { | 443 | } else { | ||
444 | dbgImage << "Warning: no <" << elementName << " /> found"; | 444 | dbgImage << "Warning: no <" << elementName << " /> found"; | ||
445 | } | 445 | } | ||
446 | return bC; | 446 | return bC; | ||
447 | } | 447 | } | ||
448 | 448 | | |||
Show All 19 Lines |