示例#1
0
文件: zbutton.cpp 项目: ghetzel/zee
void ZButton::parse(const ZConfig &el){
    if(!el.text().isEmpty())
        setText(el.text());
    else if(!el.attribute("text","").isEmpty())
        setText(el.attribute("text"));

    if(el.hasAttribute("value"))
        setValue(el.attribute("value"));

//! @icon - system name or path of the icon to display
    if(el.hasAttribute("icon"))
        zSetIcon(el.attribute("icon"));
}