treemodel.cpp
changeset 746 ee6b0f3a4c2f
parent 745 2d4cc445a86a
child 750 ff3b01ce0960
     1.1 --- a/treemodel.cpp	Mon Mar 23 09:06:51 2009 +0000
     1.2 +++ b/treemodel.cpp	Thu Mar 26 07:49:17 2009 +0000
     1.3 @@ -81,7 +81,8 @@
     1.4  	if (!parentItem)
     1.5  	{
     1.6  		cout <<"TreeModel::parent      ti=="<<ti<<"  "<<ti->getHeading().toStdString()<<endl;
     1.7 -        return QModelIndex();	// FIXME do this to avoid segfault, but why?
     1.8 +        return QModelIndex();	// FIXME-3 do this to avoid segfault, but why?
     1.9 +		                        // see also my question on qt-interest in march
    1.10  	}	
    1.11  
    1.12      return createIndex(parentItem->childNumber(), 0, parentItem);
    1.13 @@ -185,9 +186,7 @@
    1.14  	cout << "TreeModel::removeRows row="<<row<<"  count="<<count<<"  last="<<last<<endl;
    1.15      TreeItem *pi= getItem (parent);
    1.16  	cout << "  pi="<<pi<<"  "<<pi->getHeading().toStdString()<<endl;
    1.17 -	cout << "  ok0\n";
    1.18  	beginRemoveRows (parent,row,last);
    1.19 -	cout << "  ok1\n";
    1.20  
    1.21  	for (int i=row; i<=last; i++)
    1.22  	{