mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 07:06:04 +00:00
LibGUI: Models should always specify font via Model::Role::Font
This gets rid of one field in ColumnData. The goal is to get rid of all fields and lose ColumnData entirely.
This commit is contained in:
@@ -166,9 +166,6 @@ NonnullRefPtr<Gfx::Font> AbstractView::font_for_index(const ModelIndex& index) c
|
||||
if (font_data.is_font())
|
||||
return font_data.as_font();
|
||||
|
||||
auto column_metadata = model()->column_metadata(index.column());
|
||||
if (column_metadata.font)
|
||||
return *column_metadata.font;
|
||||
return font();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user