diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-26 16:04:20 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-26 17:00:40 +0200 |
commit | 8cacac32b5adf8d23cc001c0c71509b0266f2abc (patch) | |
tree | 4eafac8de9f92f0205ccea3497f5f986fe91478e | |
parent | 695b283b8c606a0df434ea5cd8e65a1804b24e7d (diff) | |
download | serenity-8cacac32b5adf8d23cc001c0c71509b0266f2abc.zip |
Spreadsheet: Enable row headers for the spreadsheet TableView
-rw-r--r-- | Applications/Spreadsheet/SpreadsheetView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/Spreadsheet/SpreadsheetView.cpp b/Applications/Spreadsheet/SpreadsheetView.cpp index 8a2778d6e4..e4339b038e 100644 --- a/Applications/Spreadsheet/SpreadsheetView.cpp +++ b/Applications/Spreadsheet/SpreadsheetView.cpp @@ -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); |