Temporarily revert that last change since it breaks the IM Kit's preflet for reasons I don't yet understand. Investigating.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -733,13 +733,7 @@ BListView::ItemAt(int32 index) const
|
|||||||
int32
|
int32
|
||||||
BListView::IndexOf(BListItem *item) const
|
BListView::IndexOf(BListItem *item) const
|
||||||
{
|
{
|
||||||
if (item != NULL) {
|
return fList.IndexOf(item);
|
||||||
BPoint point(0.0, item->Top());
|
|
||||||
int32 index = IndexOf(point);
|
|
||||||
if (index >= 0 && fList.ItemAt(index) == item)
|
|
||||||
return index;
|
|
||||||
}
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IndexOf
|
// IndexOf
|
||||||
@@ -785,7 +779,7 @@ BListView::LastItem() const
|
|||||||
bool
|
bool
|
||||||
BListView::HasItem(BListItem *item) const
|
BListView::HasItem(BListItem *item) const
|
||||||
{
|
{
|
||||||
return IndexOf(item) != -1;
|
return fList.HasItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CountItems
|
// CountItems
|
||||||
@@ -1350,9 +1344,10 @@ BListView::_FontChanged()
|
|||||||
{
|
{
|
||||||
BFont font;
|
BFont font;
|
||||||
GetFont(&font);
|
GetFont(&font);
|
||||||
for (int32 i = 0; i < CountItems(); i++)
|
for (int32 i = 0; i < CountItems(); i++) {
|
||||||
|
ItemAt(i)->SetTop((i > 0) ? ItemAt(i - 1)->Bottom() + 1.0 : 0.0);
|
||||||
ItemAt(i)->Update(this, &font);
|
ItemAt(i)->Update(this, &font);
|
||||||
_RecalcItemTops(0);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user