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


//! [0]
  QXmlNodeModelIndex MyTreeModel::nextFromSimpleAxis(SimpleAxis axis, const QXmlNodeModelIndex &ni) const
    // Convert the QXmlNodeModelIndex to a value that is specific to what we represent.
    const MyValue value = toMyValue(ni);

        case Parent:
            return toNodeIndex(value.parent());
        case FirstChild:
        case PreviousSibling:
        case NextSibling:
            // and so on
    return QXmlNodeModelIndex();
//! [0]

Generated by  Doxygen 1.6.0   Back to index