1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

LibGUI: Add (optional) row headers to GUI::TableView

You can now get row headers in your TableView by simply calling:

    table_view.row_header().set_visible(true)

Note that rows are not yet resizable.
This commit is contained in:
Andreas Kling 2020-08-26 15:54:03 +02:00
parent 49a5038a1a
commit 447b65bf7b
5 changed files with 92 additions and 18 deletions

View file

@ -68,6 +68,9 @@ private:
Gfx::IntRect section_resize_grabbable_rect(int) const;
void paint_horizontal(Painter&);
void paint_vertical(Painter&);
Menu& ensure_context_menu();
RefPtr<Menu> m_context_menu;