1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

Profiler: Use SelectionBehavior::SelectRows

Profiler uses the TreeView in a tabular fashion, and so should set the
selection behavior appropriately.
This commit is contained in:
sin-ack 2021-08-10 00:13:56 +00:00 committed by Andreas Kling
parent 158629d1c4
commit b6ef12bd26

View file

@ -137,6 +137,7 @@ int main(int argc, char** argv)
auto& tree_view = bottom_splitter.add<GUI::TreeView>();
tree_view.set_should_fill_selected_rows(true);
tree_view.set_column_headers_visible(true);
tree_view.set_selection_behavior(GUI::TreeView::SelectionBehavior::SelectRows);
tree_view.set_model(profile->model());
auto& disassembly_view = bottom_splitter.add<GUI::TableView>();