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

LibGUI: Do AbstractView::set_column_hidden() => set_column_visible()

This API felt backwards, so let's change it.
This commit is contained in:
Andreas Kling 2021-04-05 11:57:47 +02:00
parent cbc582e0df
commit 52de9b1753
7 changed files with 21 additions and 21 deletions

View file

@ -699,9 +699,9 @@ void HackStudioWidget::create_project_tree_view(GUI::Widget& parent)
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);
m_project_tree_view->set_column_visible(column_index, false);
m_project_tree_view->set_column_hidden(GUI::FileSystemModel::Column::Name, false);
m_project_tree_view->set_column_visible(GUI::FileSystemModel::Column::Name, true);
m_project_tree_view->on_context_menu_request = [this](const GUI::ModelIndex& index, const GUI::ContextMenuEvent& event) {
if (index.is_valid()) {