mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Userland: Port Model::column_name()
to String
This commit is contained in:
parent
741f07dedf
commit
945f05ed76
70 changed files with 218 additions and 222 deletions
|
@ -39,15 +39,15 @@ public:
|
|||
virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_matches.size(); }
|
||||
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return Column::__Count; }
|
||||
|
||||
virtual DeprecatedString column_name(int column) const override
|
||||
virtual String column_name(int column) const override
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Filename:
|
||||
return "Filename";
|
||||
return "Filename"_string.release_value_but_fixme_should_propagate_errors();
|
||||
case Column::Location:
|
||||
return "#";
|
||||
return "#"_short_string;
|
||||
case Column::MatchedText:
|
||||
return "Text";
|
||||
return "Text"_short_string;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue