Beispiel #1
0
void TreeWalker::acceptButtonGroups(const DomButtonGroups *domButtonGroups)
{
    typedef QList<DomButtonGroup*> DomButtonGroupList;
    const DomButtonGroupList domGroups = domButtonGroups->elementButtonGroup();
    const DomButtonGroupList::const_iterator cend = domGroups.constEnd();
    for (DomButtonGroupList::const_iterator it = domGroups.constBegin(); it != cend; ++it)
        acceptButtonGroup(*it);
}
void QFormBuilderExtra::registerButtonGroups(const DomButtonGroups *domGroups)
{
    typedef QList<DomButtonGroup*> DomButtonGroupList;
    const DomButtonGroupList domGroupList = domGroups->elementButtonGroup();
    const DomButtonGroupList::const_iterator cend = domGroupList.constEnd();
    for (DomButtonGroupList::const_iterator it = domGroupList.constBegin(); it != cend; ++it) {
        DomButtonGroup *domGroup = *it;
        m_buttonGroups.insert(domGroup->attributeName(), ButtonGroupEntry(domGroup, 0));
    }
}