LibGUI: Move selection behavior from TableView up to AbstractView

Let's make SelectionBehavior a view concept where views can either
select individual items (row, index) or whole rows. Maybe some day
we'll do whole columns, but I don't think we need that now.
This commit is contained in:
Andreas Kling 2020-12-17 00:49:42 +01:00
parent c8fb00fe4d
commit f0138fcb25
Notes: sideshowbarker 2024-07-19 00:47:08 +09:00
5 changed files with 13 additions and 15 deletions

View file

@ -41,6 +41,7 @@ namespace GUI {
AbstractTableView::AbstractTableView()
{
set_selection_behavior(SelectionBehavior::SelectRows);
m_corner_button = add<Button>();
m_corner_button->move_to_back();
m_corner_button->set_background_role(Gfx::ColorRole::ThreedShadow1);