branchitem.cpp
changeset 843 2d36a7bb0867
parent 825 1ad892c1a709
child 845 b98c1793bb8b
     1.1 --- a/branchitem.cpp	Tue Mar 30 17:30:39 2010 +0000
     1.2 +++ b/branchitem.cpp	Tue Apr 06 13:30:07 2010 +0000
     1.3 @@ -4,14 +4,13 @@
     1.4  #include "vymmodel.h"
     1.5  #include "xlinkitem.h"
     1.6  
     1.7 -#include <iostream>
     1.8  #include <QDir>
     1.9  
    1.10  using namespace std;
    1.11  
    1.12  BranchItem::BranchItem(const QList<QVariant> &data, TreeItem *parent):MapItem (data,parent)
    1.13  {
    1.14 -	//cout << "Constr. BranchItem\n";
    1.15 +	//qDebug()<< "Constr. BranchItem";
    1.16  
    1.17  	// Set type if parent is known yet 
    1.18  	// if not, type is set in insertBranch or TreeItem::appendChild
    1.19 @@ -32,7 +31,7 @@
    1.20  
    1.21  BranchItem::~BranchItem()
    1.22  {
    1.23 -	//cout << "Destr. BranchItem "<<getHeadingStd()<<endl;
    1.24 +	qDebug()<< "Destr. BranchItem "<<getHeading();
    1.25  	if (lmo) 
    1.26  	{
    1.27  		delete lmo;
    1.28 @@ -167,6 +166,7 @@
    1.29  		} else
    1.30  		{
    1.31  			qWarning (QString("BranchItem::saveToDir  Ignoring of duplicate xLink in %1").arg(getHeading()));
    1.32 +			qWarning ()<<"this="<<this<< " i="<<i<<" "<<getXLinkNum(i)<<"  "<<getXLinkNum(i-1);
    1.33  		}
    1.34  	}	
    1.35