mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:47:36 +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
38 changed files with 1 additions and 216 deletions
|
@ -47,18 +47,6 @@ String ClipboardHistoryModel::column_name(int column) const
|
|||
}
|
||||
}
|
||||
|
||||
GUI::Model::ColumnMetadata ClipboardHistoryModel::column_metadata(int column) const
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Data:
|
||||
return { 200 };
|
||||
case Column::Type:
|
||||
return { 100 };
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Variant ClipboardHistoryModel::data(const GUI::ModelIndex& index, Role) const
|
||||
{
|
||||
auto& data_and_type = m_history_items[index.row()];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue