* Implement SetFont() and invalidate the layout. More controls should probably
do this. * Fix build, appearantly I made a last minute change in Draw()... BTW, confirmed that adding virtuals declared in the base class is ok for binary compatibility. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26425 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -55,9 +55,8 @@ class BStringView : public BView{
|
|||||||
virtual void AllDetached();
|
virtual void AllDetached();
|
||||||
virtual status_t GetSupportedSuites(BMessage* data);
|
virtual status_t GetSupportedSuites(BMessage* data);
|
||||||
|
|
||||||
// TODO: should be implemented and invalidate the layout
|
virtual void SetFont(const BFont* font,
|
||||||
// virtual void SetFont(const BFont* font,
|
uint32 mask = B_FONT_ALL);
|
||||||
// uint32 mask = B_FONT_ALL);
|
|
||||||
|
|
||||||
virtual void InvalidateLayout(bool descendants = false);
|
virtual void InvalidateLayout(bool descendants = false);
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ BStringView::AttachedToWindow()
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BStringView::Draw(BRect bounds)
|
BStringView::Draw(BRect updateRect)
|
||||||
{
|
{
|
||||||
if (!fText)
|
if (!fText)
|
||||||
return;
|
return;
|
||||||
@@ -282,6 +282,16 @@ BStringView::GetSupportedSuites(BMessage* message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BStringView::SetFont(const BFont* font, uint32 mask)
|
||||||
|
{
|
||||||
|
BView::SetFont(font, mask);
|
||||||
|
|
||||||
|
InvalidateLayout();
|
||||||
|
Invalidate();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BStringView::InvalidateLayout(bool descendants)
|
BStringView::InvalidateLayout(bool descendants)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user