From 4ee47fe9e89209dff0a17a5237a3908e33aaa966 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 25 Dec 2016 16:16:43 -0500 Subject: [PATCH] BListView: Cleanup, no functional change. - Rename _FontChanged() to _UpdateItems() to more accurately reflect its purpose, as discussed on commits list. Adjust callers accordingly. --- headers/os/interface/ListView.h | 2 +- src/kits/interface/ListView.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/headers/os/interface/ListView.h b/headers/os/interface/ListView.h index 56878a945e..f705765e70 100644 --- a/headers/os/interface/ListView.h +++ b/headers/os/interface/ListView.h @@ -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); diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index 59f9d40e9f..f261e03158 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -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);