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

int TreeModel::columnCount ( const QModelIndex parent = QModelIndex()  )  const [virtual]

[1]

[2]

Implements QAbstractItemModel.

Definition at line 70 of file treemodel.cpp.

References TreeItem::columnCount(), QModelIndex::internalPointer(), and QModelIndex::isValid().

Referenced by insertRows().

{
    if (parent.isValid())
        return static_cast<TreeItem*>(parent.internalPointer())->columnCount();
    else
        return rootItem->columnCount();
}


Generated by  Doxygen 1.6.0   Back to index