1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

Spreadsheet: Get rid of the "row numbers" column

Let's use TableView's row headers for this instead. :^)
This commit is contained in:
Andreas Kling 2020-08-26 16:03:45 +02:00
parent 447b65bf7b
commit 695b283b8c
3 changed files with 10 additions and 26 deletions

View file

@ -37,7 +37,7 @@ public:
virtual ~SheetModel() override;
virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_sheet->row_count(); }
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_sheet->column_count() + 1; }
virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_sheet->column_count(); }
virtual String column_name(int) const override;
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
virtual bool is_editable(const GUI::ModelIndex&) const override;