mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:47:35 +00:00
Let widget have a font() instead of using Font::defaultFont() everywhere.
This commit is contained in:
parent
e5acbca0e8
commit
fc1facf5c0
8 changed files with 32 additions and 25 deletions
|
@ -14,7 +14,7 @@ ListBox::~ListBox()
|
|||
|
||||
unsigned ListBox::itemHeight() const
|
||||
{
|
||||
return Font::defaultFont().glyphHeight() + 2;
|
||||
return font().glyphHeight() + 2;
|
||||
}
|
||||
|
||||
void ListBox::paintEvent(PaintEvent&)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue