1.1 --- a/treemodel.cpp Mon Apr 27 12:07:15 2009 +0000
1.2 +++ b/treemodel.cpp Mon Apr 27 12:42:06 2009 +0000
1.3 @@ -181,15 +181,12 @@
1.4 bool TreeModel::removeRows ( int row, int count, const QModelIndex & parent)
1.5 {
1.6 int last=row+count-1;
1.7 - cout << "TreeModel::removeRows row="<<row<<" count="<<count<<" last="<<last<<endl;
1.8 TreeItem *pi= getItem (parent);
1.9 TreeItem *ti;
1.10 - cout << " pi="<<pi<<" "<<pi->getHeading().toStdString()<<endl;
1.11 beginRemoveRows (parent,row,last);
1.12
1.13 for (int i=row; i<=last; i++)
1.14 {
1.15 - cout << "TreeModel::removeRows removing i="<<i<<std::endl;
1.16 ti=pi->getChildNum (row);
1.17 pi->removeChild (row); // does not delete object!
1.18 switch (ti->getType())