1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

Inspector: Select entire property row

With some themes (like the default one), it was possible to select a
property, making the text of its value not visible. I solved this by
setting set_should_fill_selected_rows to true.
This commit is contained in:
DragonAlex98 2021-04-21 14:32:38 +02:00 committed by Linus Groh
parent b9fc7780ae
commit 0af920b255

View file

@ -162,6 +162,7 @@ int main(int argc, char** argv)
tree_view.set_fixed_width(286);
auto& properties_tree_view = splitter.add<GUI::TreeView>();
properties_tree_view.set_should_fill_selected_rows(true);
properties_tree_view.set_editable(true);
properties_tree_view.aid_create_editing_delegate = [](auto&) {
return make<GUI::StringModelEditingDelegate>();