mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Spreadsheet: Focus the spreadsheet table on startup
This commit is contained in:
parent
af16552624
commit
965ccf5242
2 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,8 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
|
|||
m_table_view = add<GUI::TableView>();
|
||||
m_table_view->set_model(SheetModel::create(*m_sheet));
|
||||
|
||||
set_focus_proxy(m_table_view);
|
||||
|
||||
// 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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue