1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:28:13 +00:00

HackStudio: Allow multi-selection in project view tree

This commit is contained in:
Bui Quang Minh 2021-03-02 21:25:03 +07:00 committed by Andreas Kling
parent 6d68ae45b4
commit faed0e63dc

View file

@ -694,6 +694,7 @@ void HackStudioWidget::create_project_tree_view(GUI::Widget& parent)
{
m_project_tree_view = parent.add<GUI::TreeView>();
m_project_tree_view->set_model(m_project->model());
m_project_tree_view->set_selection_mode(GUI::AbstractView::SelectionMode::MultiSelection);
for (int column_index = 0; column_index < m_project->model().column_count(); ++column_index)
m_project_tree_view->set_column_hidden(column_index, true);