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

DomItem * DomItem::child ( int  i )

[4]

[5]

Definition at line 82 of file domitem.cpp.

References QDomNode::childNodes(), QHash< Key, T >::contains(), QDomNodeList::count(), and QDomNodeList::item().

Referenced by DomModel::index().

{
    if (childItems.contains(i))
        return childItems[i];

    if (i >= 0 && i < domNode.childNodes().count()) {
        QDomNode childNode = domNode.childNodes().item(i);
        DomItem *childItem = new DomItem(childNode, i, this);
        childItems[i] = childItem;
        return childItem;
    }
    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index