included <typeinfo>
authorinsilmaril
Tue Oct 16 09:53:22 2007 +0000 (2007-10-16)
changeset 59860f019156464
parent 597 61b05137cc6f
child 599 e1d06cd563da
included <typeinfo>
branchobj.cpp
branchobj.h
demos/vym-projectplan.vym
     1.1 --- a/branchobj.cpp	Tue Sep 04 13:53:34 2007 +0000
     1.2 +++ b/branchobj.cpp	Tue Oct 16 09:53:22 2007 +0000
     1.3 @@ -734,7 +734,7 @@
     1.4  
     1.5  void BranchObj::setHideTmp (HideTmpMode mode)
     1.6  {
     1.7 -	if (mode==HideExport && hasHiddenExportParent(this))
     1.8 +	if (mode==HideExport && hasHiddenExportParent())
     1.9  	{
    1.10  		setVisibility (false);
    1.11  		hidden=true;
    1.12 @@ -751,16 +751,16 @@
    1.13  		branch.at(i)->setHideTmp (mode);
    1.14  }
    1.15  
    1.16 -bool BranchObj::hasHiddenExportParent(BranchObj *start)
    1.17 +bool BranchObj::hasHiddenExportParent()
    1.18  {
    1.19  	// Calls parents recursivly to
    1.20  	// find out, if we are temp. hidden
    1.21  
    1.22  	if (hideExport) return true;
    1.23  
    1.24 -	BranchObj* bo=(BranchObj*)(parObj);
    1.25 +	BranchObj* bo=(BranchObj*)parObj;
    1.26  	if (bo) 
    1.27 -		return bo->hasHiddenExportParent(start);
    1.28 +		return bo->hasHiddenExportParent();
    1.29  	else
    1.30  		return false;
    1.31  }
     2.1 --- a/branchobj.h	Tue Sep 04 13:53:34 2007 +0000
     2.2 +++ b/branchobj.h	Tue Oct 16 09:53:22 2007 +0000
     2.3 @@ -68,7 +68,7 @@
     2.4      virtual void setHeading (QString);
     2.5  
     2.6  	virtual void setHideTmp (HideTmpMode);
     2.7 -	virtual bool hasHiddenExportParent (BranchObj*);
     2.8 +	virtual bool hasHiddenExportParent ();
     2.9  
    2.10  	virtual QString saveToDir (const QString&,const QString&, const QPointF&);// Save data recursivly to tempdir
    2.11  	virtual void addXLink (XLinkObj*);
     3.1 Binary file demos/vym-projectplan.vym has changed