void Color::setNamedColor(const String& name) { const NamedColor* foundColor = findNamedColor(name); m_color = foundColor ? foundColor->RGBValue : 0; m_color |= 0xFF000000; m_valid = foundColor; }
bool Color::setNamedColor(const String& name) { const NamedColor* foundColor = findNamedColor(name); m_color = foundColor ? foundColor->ARGBValue : 0; return foundColor; }