mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:28:10 +00:00
LibGUI: GTableModel::data() should take a GModelIndex instead of int,int.
This commit is contained in:
parent
dc4e6dd7bc
commit
7df1121e1c
6 changed files with 12 additions and 12 deletions
|
@ -135,10 +135,10 @@ String DirectoryTableModel::name_for_gid(uid_t gid) const
|
|||
return (*it).value;
|
||||
}
|
||||
|
||||
GVariant DirectoryTableModel::data(int row, int column) const
|
||||
GVariant DirectoryTableModel::data(const GModelIndex& index) const
|
||||
{
|
||||
auto& entry = this->entry(row);
|
||||
switch (column) {
|
||||
auto& entry = this->entry(index.row());
|
||||
switch (index.column()) {
|
||||
case Column::Icon: return icon_for(entry);
|
||||
case Column::Name: return entry.name;
|
||||
case Column::Size: return (int)entry.size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue