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:
@@ -171,7 +171,7 @@ private:
|
|||||||
void _FixupScrollBar();
|
void _FixupScrollBar();
|
||||||
void _InvalidateFrom(int32 index);
|
void _InvalidateFrom(int32 index);
|
||||||
status_t _PostMessage(BMessage* message);
|
status_t _PostMessage(BMessage* message);
|
||||||
void _FontChanged();
|
void _UpdateItems();
|
||||||
int32 _RangeCheck(int32 index);
|
int32 _RangeCheck(int32 index);
|
||||||
bool _Select(int32 index, bool extend);
|
bool _Select(int32 index, bool extend);
|
||||||
bool _Select(int32 from, int32 to, bool extend);
|
bool _Select(int32 from, int32 to, bool extend);
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ void
|
|||||||
BListView::AttachedToWindow()
|
BListView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
BView::AttachedToWindow();
|
BView::AttachedToWindow();
|
||||||
_FontChanged();
|
_UpdateItems();
|
||||||
|
|
||||||
if (!Messenger().IsValid())
|
if (!Messenger().IsValid())
|
||||||
SetTarget(Window(), NULL);
|
SetTarget(Window(), NULL);
|
||||||
@@ -259,7 +259,7 @@ BListView::FrameResized(float newWidth, float newHeight)
|
|||||||
_FixupScrollBar();
|
_FixupScrollBar();
|
||||||
|
|
||||||
// notify items of new width.
|
// notify items of new width.
|
||||||
_FontChanged();
|
_UpdateItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -731,7 +731,7 @@ BListView::SetFont(const BFont* font, uint32 mask)
|
|||||||
BView::SetFont(font, mask);
|
BView::SetFont(font, mask);
|
||||||
|
|
||||||
if (Window() != NULL && !Window()->InViewTransaction())
|
if (Window() != NULL && !Window()->InViewTransaction())
|
||||||
_FontChanged();
|
_UpdateItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1523,7 +1523,7 @@ BListView::_InvalidateFrom(int32 index)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BListView::_FontChanged()
|
BListView::_UpdateItems()
|
||||||
{
|
{
|
||||||
BFont font;
|
BFont font;
|
||||||
GetFont(&font);
|
GetFont(&font);
|
||||||
|
|||||||
Reference in New Issue
Block a user