mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:14: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:
parent
c666c251c8
commit
2adb0a07e5
38 changed files with 1 additions and 216 deletions
|
@ -568,31 +568,6 @@ String FileSystemModel::column_name(int column) const
|
|||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
Model::ColumnMetadata FileSystemModel::column_metadata(int column) const
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Icon:
|
||||
return { 16 };
|
||||
case Column::Name:
|
||||
return { 120 };
|
||||
case Column::Size:
|
||||
return { 80 };
|
||||
case Column::Owner:
|
||||
return { 50 };
|
||||
case Column::Group:
|
||||
return { 50 };
|
||||
case Column::ModificationTime:
|
||||
return { 110 };
|
||||
case Column::Permissions:
|
||||
return { 65 };
|
||||
case Column::Inode:
|
||||
return { 60 };
|
||||
case Column::SymlinkTarget:
|
||||
return { 120 };
|
||||
}
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
bool FileSystemModel::accepts_drag(const ModelIndex& index, const StringView& data_type)
|
||||
{
|
||||
if (!index.is_valid())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue