Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDomUtils::Private Namespace Reference

Functions

bool checkType (const QDomElement &e, const QString &expectedType)
 

Function Documentation

◆ checkType()

bool KRITAGLOBAL_EXPORT KisDomUtils::Private::checkType ( const QDomElement & e,
const QString & expectedType )

Definition at line 154 of file kis_dom_utils.cpp.

155 {
156 QString type = e.attribute("type", "unknown-type");
157 if (type != expectedType) {
158 warnKrita << i18n("Error: incorrect type (%2) for value %1. Expected %3", e.tagName(), type, expectedType);
159 return false;
160 }
161
162 return true;
163 }
#define warnKrita
Definition kis_debug.h:87

References warnKrita.