changeset 819 | 8f987e376035 |
parent 804 | 14f2b1b15242 |
child 822 | c2ce9944148c |
1.1 --- a/branchitem.cpp Tue Dec 15 09:14:59 2009 +0000 1.2 +++ b/branchitem.cpp Mon Jan 04 20:36:06 2010 +0000 1.3 @@ -178,7 +178,12 @@ 1.4 { 1.5 // Needed to hide relinked branch, if parent is scrolled 1.6 if (lmo) 1.7 - lmo->setVisibility(!((BranchItem*)parentItem)->isScrolled()); 1.8 + { 1.9 + if (hasScrolledParent(this) || hidden) 1.10 + lmo->setVisibility (false); 1.11 + else 1.12 + lmo->setVisibility (true); 1.13 + } 1.14 } 1.15 1.16 void BranchItem::setHeadingColor (QColor color)