/** Update attributes of this node with the given attribute list */ void GNode::update(AttribList & attribList) { AttribListConstIterator it = attribList.constBegin(); for (; it!=attribList.constEnd(); ++it) { attributeSet(it.key(), it.value()); } }
void expectAttributeInvalidation(const AtomicString& attribute, InvalidationSetVector& invalidationSets) { EXPECT_EQ(1u, invalidationSets.size()); HashSet<AtomicString> attributes = attributeSet(*invalidationSets[0]); EXPECT_EQ(1u, attributes.size()); EXPECT_TRUE(attributes.contains(attribute)); }
/** Set the attribute key to val */ void GNode::attribute(QString key, const char* val) { attributeSet(key, QString(val)); }
/** Set the attribute key to val */ void GNode::attribute(QString key, double val) { attributeSet(key, QString().sprintf("%f", val)); }
/** Set the attribute key to val */ void GNode::attribute(QString key, int val) { attributeSet(key, QString().setNum(val)); }
/** Set the attribute key to val */ void GNode::attribute(QString key, QString val) { attributeSet(key.toLower(), val); }