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
commit b6ef12bd26
Notes: sideshowbarker 2024-07-18 07:08:50 +09:00

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