mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:47:34 +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
|
@ -23,17 +23,17 @@ ClipboardHistoryModel::ClipboardHistoryModel()
|
|||
{
|
||||
}
|
||||
|
||||
DeprecatedString ClipboardHistoryModel::column_name(int column) const
|
||||
String ClipboardHistoryModel::column_name(int column) const
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Data:
|
||||
return "Data";
|
||||
return "Data"_short_string;
|
||||
case Column::Type:
|
||||
return "Type";
|
||||
return "Type"_short_string;
|
||||
case Column::Size:
|
||||
return "Size";
|
||||
return "Size"_short_string;
|
||||
case Column::Time:
|
||||
return "Time";
|
||||
return "Time"_short_string;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ private:
|
|||
|
||||
// ^GUI::Model
|
||||
virtual int row_count(const GUI::ModelIndex&) const override { return m_history_items.size(); }
|
||||
virtual DeprecatedString column_name(int) const override;
|
||||
virtual String column_name(int) const override;
|
||||
virtual int column_count(const GUI::ModelIndex&) const override { return Column::__Count; }
|
||||
|
||||
// ^GUI::Clipboard::ClipboardClient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue