Example #1
0
/** 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));
 }
Example #3
0
/** Set the attribute key to val */
void GNode::attribute(QString key, const char* val)
{
  attributeSet(key, QString(val));
}
Example #4
0
/** Set the attribute key to val */
void GNode::attribute(QString key, double val)
{
  attributeSet(key, QString().sprintf("%f", val));
}
Example #5
0
/** Set the attribute key to val */
void GNode::attribute(QString key, int val)
{
  attributeSet(key, QString().setNum(val));
}
Example #6
0
/** Set the attribute key to val */
void GNode::attribute(QString key, QString val)
{
  attributeSet(key.toLower(), val);
}