Made AncestorsVisible() const.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ee72866293
commit
df7309870f
@ -44,7 +44,7 @@ public:
|
||||
int32 IndexOfItem(const BLayoutItem* item) const;
|
||||
int32 IndexOfView(BView* child) const;
|
||||
|
||||
bool AncestorsVisible();
|
||||
bool AncestorsVisible() const;
|
||||
|
||||
// Layouting related methods
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user