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