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


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

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