Made AncestorsVisible() const.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-11-19 21:26:54 +00:00
parent ee72866293
commit df7309870f
2 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ public:
int32 IndexOfItem(const BLayoutItem* item) const;
int32 IndexOfView(BView* child) const;
bool AncestorsVisible();
bool AncestorsVisible() const;
// Layouting related methods

View File

@ -267,7 +267,7 @@ BLayout::IndexOfView(BView* child) const
bool
BLayout::AncestorsVisible()
BLayout::AncestorsVisible() const
{
return fAncestorsVisible;
}
@ -286,7 +286,7 @@ BLayout::InvalidateLayout(bool children)
if (children) {
for (int32 i = CountItems() - 1; i >= 0; i--)
ItemAt(i)->InvalidateLayout(children);
ItemAt(i)->InvalidateLayout(children);
}
if (fOwner && BView::Private(fOwner).MinMaxValid())
@ -366,7 +366,7 @@ BLayout::Relayout(bool immediate)
}
void
BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
{
@ -392,7 +392,7 @@ BLayout::_LayoutWithinContext(bool force, BLayoutContext* context)
// already been triggered).
int32 nestedLayoutCount = fNestedLayouts.CountItems();
for (int32 i = 0; i < nestedLayoutCount; i++) {
BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i);
BLayout* layout = (BLayout*)fNestedLayouts.ItemAt(i);
if ((layout->fState & B_LAYOUT_NECESSARY) != 0)
layout->_LayoutWithinContext(force, context);
}
@ -462,7 +462,7 @@ BLayout::AllUnarchived(const BMessage* from)
err = ItemUnarchived(from, item, i);
if (err != B_OK) {
fItems.RemoveItem(i);
ItemRemoved(item, i);
ItemRemoved(item, i);
return err;
}