1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

Spreadsheet: Enable row headers for the spreadsheet TableView

This commit is contained in:
Andreas Kling 2020-08-26 16:04:20 +02:00
parent 695b283b8c
commit 8cacac32b5

View file

@ -27,6 +27,7 @@
#include "SpreadsheetView.h"
#include "SpreadsheetModel.h"
#include <LibGUI/BoxLayout.h>
#include <LibGUI/HeaderView.h>
#include <LibGUI/ModelEditingDelegate.h>
#include <LibGUI/Painter.h>
#include <LibGUI/TableView.h>
@ -56,6 +57,7 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
{
set_layout<GUI::VerticalBoxLayout>().set_margins({ 2, 2, 2, 2 });
m_table_view = add<GUI::TableView>();
m_table_view->row_header().set_visible(true);
m_table_view->set_model(SheetModel::create(*m_sheet));
set_focus_proxy(m_table_view);