mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
LibGUI: Rename table view's "cell painting delegate" to "column *"
What you install with this API is a delegate that manages painting of all the items in a specific column, so let's make the API reflect that.
This commit is contained in:
parent
44e371635e
commit
cfc30b11ba
5 changed files with 5 additions and 5 deletions
|
@ -62,7 +62,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
|
||||
// FIXME: This is dumb.
|
||||
for (size_t i = 0; i < m_sheet->column_count(); ++i) {
|
||||
m_table_view->set_cell_painting_delegate(i + 1, make<TableCellPainter>(*m_table_view));
|
||||
m_table_view->set_column_painting_delegate(i + 1, make<TableCellPainter>(*m_table_view));
|
||||
m_table_view->set_column_width(i + 1, 50);
|
||||
m_table_view->set_column_header_alignment(i + 1, Gfx::TextAlignment::Center);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue