1
Fork 0
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:
kleines Filmröllchen 2022-04-04 23:12:19 +02:00 committed by Andreas Kling
parent b34b939a03
commit 68a758304a

View file

@ -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);