mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibGUI: Register should_fill_selected_rows for GML in TreeView
This commit is contained in:
parent
b34b939a03
commit
68a758304a
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <AK/Debug.h>
|
||||
#include <LibCore/Object.h>
|
||||
#include <LibGUI/HeaderView.h>
|
||||
#include <LibGUI/Model.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
|
@ -35,6 +36,7 @@ TreeView::MetadataForIndex& TreeView::ensure_metadata_for_index(ModelIndex const
|
|||
|
||||
TreeView::TreeView()
|
||||
{
|
||||
REGISTER_BOOL_PROPERTY("should_fill_selected_rows", should_fill_selected_rows, set_should_fill_selected_rows);
|
||||
set_selection_behavior(SelectionBehavior::SelectItems);
|
||||
set_fill_with_background_color(true);
|
||||
set_background_role(ColorRole::Base);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue