vymmodel.cpp
changeset 757 c6908bc17d78
parent 756 a8a5c7288f57
child 759 bf3ea1f1520b
     1.1 --- a/vymmodel.cpp	Mon Apr 27 12:07:15 2009 +0000
     1.2 +++ b/vymmodel.cpp	Mon Apr 27 12:42:06 2009 +0000
     1.3 @@ -273,7 +273,7 @@
     1.4  {
     1.5      QString s;
     1.6  
     1.7 -	for (int i=0; i<rootItem->branchCount(); i++)	// FIXME-0 remove mapCenters
     1.8 +	for (int i=0; i<rootItem->branchCount(); i++)
     1.9  		s+=((MapCenterItem*)rootItem->getBranchNum(i))->saveToDir (tmpdir,prefix,offset);
    1.10      return s;
    1.11  }
    1.12 @@ -985,10 +985,7 @@
    1.13  void VymModel::setChanged()
    1.14  {
    1.15  	if (!mapChanged)
    1.16 -	{
    1.17  		autosaveTimer->start(settings.value("/mainwindow/autosave/ms/",300000).toInt());
    1.18 -		cout <<"   timer started with "<<settings.value("/mainwindow/autosave/ms/",300000).toInt()<<endl;
    1.19 -	}	
    1.20  	mapChanged=true;
    1.21  	mapDefault=false;
    1.22  	mapUnsaved=true;
    1.23 @@ -2255,7 +2252,6 @@
    1.24  
    1.25  BranchItem* VymModel::relinkBranch (BranchItem *branch, BranchItem *dst, int pos)
    1.26  {
    1.27 -	cout << "VM::relinkBranch  "<<branch->getHeadingStd()<<"  to "<<dst->getHeadingStd()<<"  at pos="<<pos<<endl;
    1.28  	if (branch && dst)
    1.29  	{
    1.30  		emit (layoutAboutToBeChanged() );
    1.31 @@ -2273,7 +2269,6 @@
    1.32  			n=0;
    1.33  		else	
    1.34  			n=dst->getFirstBranch()->childNumber(); 
    1.35 -	cout << "***  dst->bCount="<<dst->branchCount()<<"  n="<<n<<"  pos="<<pos<<endl;		
    1.36  		beginInsertRows (index(dst),n+pos,n+pos);
    1.37  		dst->insertBranch (pos,branch);
    1.38  		endInsertRows();
    1.39 @@ -2339,7 +2334,6 @@
    1.40  
    1.41  		emit (layoutAboutToBeChanged() );
    1.42  
    1.43 -		cout << "VM::delete  selbi="<<selbi<<"  row="<<ix.row()<<endl;
    1.44  		parentIndex=parent(index(selbi));
    1.45  		int n=ix.row();
    1.46  		beginRemoveRows (parentIndex,n,n);