Example #1
0
/***********************************************************
clear the tree content
***********************************************************/
void TreeModel::Clear(const QModelIndex &index)
{
    TreeItem *it = getItem(index);
    beginRemoveRows(index, 0, it->childCount());
	it->Clear();
    endRemoveRows();
}