mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +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:
parent
c666c251c8
commit
2adb0a07e5
Notes:
sideshowbarker
2024-07-19 06:16:38 +09:00
Author: https://github.com/awesomekling
Commit: 2adb0a07e5
38 changed files with 1 additions and 216 deletions
|
@ -91,12 +91,6 @@ bool JsonArrayModel::remove(int row)
|
|||
return true;
|
||||
}
|
||||
|
||||
Model::ColumnMetadata JsonArrayModel::column_metadata(int column) const
|
||||
{
|
||||
ASSERT(column < static_cast<int>(m_fields.size()));
|
||||
return { 100 };
|
||||
}
|
||||
|
||||
Variant JsonArrayModel::data(const ModelIndex& index, Role role) const
|
||||
{
|
||||
auto& field_spec = m_fields[index.column()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue