mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizing
Auto-sizing of view columns is now enabled by default. This removes the last remaining need for ColumnMetadata, so this patch gets rid of it.
This commit is contained in:
@@ -56,7 +56,6 @@ TreeView::TreeView()
|
||||
set_fill_with_background_color(true);
|
||||
set_background_role(ColorRole::Base);
|
||||
set_foreground_role(ColorRole::BaseText);
|
||||
set_size_columns_to_fit_content(true);
|
||||
set_headers_visible(false);
|
||||
m_expand_bitmap = Gfx::Bitmap::load_from_file("/res/icons/treeview-expand.png");
|
||||
m_collapse_bitmap = Gfx::Bitmap::load_from_file("/res/icons/treeview-collapse.png");
|
||||
@@ -515,9 +514,6 @@ int TreeView::item_count() const
|
||||
|
||||
void TreeView::update_column_sizes()
|
||||
{
|
||||
if (!size_columns_to_fit_content())
|
||||
return;
|
||||
|
||||
if (!model())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user