branchitem.cpp
changeset 781 6cbf3c9cbd21
parent 780 fe839bdfd10c
child 785 5987f9f15bac
     1.1 --- a/branchitem.cpp	Tue Jul 07 11:21:27 2009 +0000
     1.2 +++ b/branchitem.cpp	Wed Jul 22 11:48:23 2009 +0000
     1.3 @@ -154,8 +154,11 @@
     1.4      return s;
     1.5  }
     1.6  
     1.7 -void BranchItem::updateVisibility()	// FIXME-3	Check if this is needed after all...
     1.8 +void BranchItem::updateVisibility()	
     1.9  {
    1.10 +	// Needed to hide relinked branch, if parent is scrolled
    1.11 +	if (lmo)
    1.12 +		lmo->setVisibility(!((BranchItem*)parentItem)->isScrolled());
    1.13  }
    1.14  
    1.15  void BranchItem::setHeadingColor (QColor color)