47 QMap<QString, QVariant> map =
d->
properties->getProperties();
49 for (
const QString &key : map.keys()) {
50 QVariant
v = map.value(key);
52 if (
v.isValid() &&
v.type() == QVariant::UserType &&
v.userType() == qMetaTypeId<KoColor>()) {
62 Q_FOREACH(
const QString & key, propertyMap.keys()) {
78 if (
v.isValid() &&
v.type() == QVariant::UserType &&
v.userType() == qMetaTypeId<KoColor>()) {
float value(const T *src, size_t ch)
bool operator!=(const InfoObject &other) const
void setProperty(const QString &key, QVariant value)
QVariant property(const QString &key)
InfoObject(KisPropertiesConfigurationSP configuration)
QMap< QString, QVariant > properties() const
KisPropertiesConfigurationSP configuration() const
configuration gives access to the internal configuration object. Must be used internally in libkis
void setProperties(QMap< QString, QVariant > propertyMap)
bool operator==(const InfoObject &other) const
void toXML(QDomDocument &doc, QDomElement &colorElt) const
KisPropertiesConfigurationSP properties