BListView: Cleanup, no functional change.
- Rename _FontChanged() to _UpdateItems() to more accurately reflect its purpose, as discussed on commits list. Adjust callers accordingly.
This commit is contained in:
parent
8f449285f2
commit
4ee47fe9e8
@ -171,7 +171,7 @@ private:
|
||||
void _FixupScrollBar();
|
||||
void _InvalidateFrom(int32 index);
|
||||
status_t _PostMessage(BMessage* message);
|
||||
void _FontChanged();
|
||||
void _UpdateItems();
|
||||
int32 _RangeCheck(int32 index);
|
||||
bool _Select(int32 index, bool extend);
|
||||
bool _Select(int32 from, int32 to, bool extend);
|
||||
|
@ -223,7 +223,7 @@ void
|
||||
BListView::AttachedToWindow()
|
||||
{
|
||||
BView::AttachedToWindow();
|
||||
_FontChanged();
|
||||
_UpdateItems();
|
||||
|
||||
if (!Messenger().IsValid())
|
||||
SetTarget(Window(), NULL);
|
||||
@ -259,7 +259,7 @@ BListView::FrameResized(float newWidth, float newHeight)
|
||||
_FixupScrollBar();
|
||||
|
||||
// notify items of new width.
|
||||
_FontChanged();
|
||||
_UpdateItems();
|
||||
}
|
||||
|
||||
|
||||
@ -731,7 +731,7 @@ BListView::SetFont(const BFont* font, uint32 mask)
|
||||
BView::SetFont(font, mask);
|
||||
|
||||
if (Window() != NULL && !Window()->InViewTransaction())
|
||||
_FontChanged();
|
||||
_UpdateItems();
|
||||
}
|
||||
|
||||
|
||||
@ -1523,7 +1523,7 @@ BListView::_InvalidateFrom(int32 index)
|
||||
|
||||
|
||||
void
|
||||
BListView::_FontChanged()
|
||||
BListView::_UpdateItems()
|
||||
{
|
||||
BFont font;
|
||||
GetFont(&font);
|
||||
|
Loading…
Reference in New Issue
Block a user