vymmodel.cpp
changeset 736 21f115d48daf
parent 735 84ae10f6e3a3
child 737 53e51e8d47e7
     1.1 --- a/vymmodel.cpp	Tue Jan 20 15:23:16 2009 +0000
     1.2 +++ b/vymmodel.cpp	Thu Jan 22 11:39:53 2009 +0000
     1.3 @@ -1499,12 +1499,13 @@
     1.4  			QString("Set heading of %1 to \"%2\"").arg(getObjectName(sel)).arg(s) );
     1.5  		sel->setHeading(s );
     1.6  		/* FIXME testing only
     1.7 -		TreeItem *ti=getSelectedBranchItem();
     1.8 +		*/
     1.9 +		TreeItem *ti=getSelectedTreeItem();
    1.10  		if (ti)
    1.11  		{
    1.12  			ti->setHeading (s);
    1.13  			//FIXME VM ix is wrong ModelIndex below, ix2 is (hopefully) correct:
    1.14 -			QModelIndex ix=index( ti->row(), ti->column(), index (0,0,QModelIndex()) );
    1.15 +			//QModelIndex ix=index( ti->row(), ti->column(), index (0,0,QModelIndex()) );
    1.16  			//FIXME VM testing only cout <<"VM::setHeading  s="<<s.toStdString()<<"  ti="<<ti<<"  r,c=("<<ti->row()<<","<<ti->column()<<")"<<endl;
    1.17  			QModelIndex ix2=index (ti);
    1.18  			emit (dataChanged ( ix2,ix2));
    1.19 @@ -1516,7 +1517,6 @@
    1.20  
    1.21  		//cout <<"                (r,c)=("<<ix2.row()<<","<<ix2.column()<<")"<<endl;
    1.22  
    1.23 -		*/
    1.24  		reposition();
    1.25  		selection.update();
    1.26  		ensureSelectionVisible();
    1.27 @@ -4937,11 +4937,8 @@
    1.28  				// Mainbranch, return 
    1.29  				s= "bo:" + QString("%1").arg(((BranchObj*)lmo)->getNum());
    1.30  			else	
    1.31 -			{
    1.32 -				cout << "VM::getSelectString  lmo="<<lmo<<"  d="<<lmo->getDepth()<<"  s="<<s.toStdString()<<"  h="<<((BranchObj*)lmo)->getHeading().toStdString()<<endl;
    1.33  				// Branch, call myself recursively
    1.34  				s= getSelectString(par) + ",bo:" + QString("%1").arg(((BranchObj*)lmo)->getNum());
    1.35 -			}
    1.36  		} else
    1.37  		{
    1.38  			// MapCenter