hrev50789 adds 1 changeset to branch 'master'
old head: 8f449285f2232e34682e34450c0e0d50d4f54998
new head: 4ee47fe9e89209dff0a17a5237a3908e33aaa966
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=4ee47fe9e892+%5E8f449285f223
----------------------------------------------------------------------------
4ee47fe9e892: BListView: Cleanup, no functional change.
- Rename _FontChanged() to _UpdateItems() to more accurately reflect its
purpose, as discussed on commits list. Adjust callers accordingly.
[ Rene Gollent <rene@xxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev50789
Commit: 4ee47fe9e89209dff0a17a5237a3908e33aaa966
URL: http://cgit.haiku-os.org/haiku/commit/?id=4ee47fe9e892
Author: Rene Gollent <rene@xxxxxxxxxxx>
Date: Sun Dec 25 21:16:43 2016 UTC
----------------------------------------------------------------------------
2 files changed, 5 insertions(+), 5 deletions(-)
headers/os/interface/ListView.h | 2 +-
src/kits/interface/ListView.cpp | 8 ++++----
----------------------------------------------------------------------------
diff --git a/headers/os/interface/ListView.h b/headers/os/interface/ListView.h
index 56878a9..f705765 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 59f9d40..f261e03 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);