Example #1
0
/***********************************************************
accessor
***********************************************************/
boost::shared_ptr<int> TreeModel::CustomIndexNumber(const QModelIndex &index) const
{
    if (!index.isValid())
        return boost::shared_ptr<int>();


	TreeItem *item = static_cast<TreeItem*>(index.internalPointer());
	return item->CustomIndexNumber(index.column());

    return boost::shared_ptr<int>();
}