Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

DomActionGroup * QAbstractFormBuilder::createDom ( QActionGroup actionGroup  )  [protected, virtual, inherited]

For internal use only.

Definition at line 2339 of file abstractformbuilder.cpp.

References QActionGroup::actions(), QList< T >::append(), QAbstractFormBuilder::computeProperties(), QAbstractFormBuilder::createDom(), and QObject::objectName.

{
    DomActionGroup *ui_action_group = new DomActionGroup;
    ui_action_group->setAttributeName(actionGroup->objectName());

    QList<DomProperty*> properties = computeProperties(actionGroup);
    ui_action_group->setElementProperty(properties);

    QList<DomAction*> ui_actions;

    foreach (QAction *action, actionGroup->actions()) {
        if (DomAction *ui_action = createDom(action)) {
            ui_actions.append(ui_action);
        }
    }

    ui_action_group->setElementAction(ui_actions);

    return ui_action_group;
}


Generated by  Doxygen 1.6.0   Back to index