mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
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:
parent
c8fb00fe4d
commit
f0138fcb25
Notes:
sideshowbarker
2024-07-19 00:47:08 +09:00
Author: https://github.com/awesomekling
Commit: f0138fcb25
5 changed files with 13 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue