mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:15:06 +00:00
LibGUI: Simplify TableCellPaintingDelegate API slightly
No need to pass the Model *and* a ModelIndex, the index knows which model it belongs to anyway.
This commit is contained in:
parent
f882424869
commit
96f98b1fc9
5 changed files with 8 additions and 8 deletions
|
@ -291,7 +291,7 @@ void TreeView::paint_event(PaintEvent& event)
|
|||
auto cell_index = model.index(index.row(), column_index, index.parent());
|
||||
|
||||
if (auto* delegate = column_data(column_index).cell_painting_delegate.ptr()) {
|
||||
delegate->paint(painter, cell_rect, palette(), model, cell_index);
|
||||
delegate->paint(painter, cell_rect, palette(), cell_index);
|
||||
} else {
|
||||
auto data = model.data(cell_index);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue