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

IRCClient: Hide all the table view headers.

This commit is contained in:
Andreas Kling 2019-03-15 14:57:35 +01:00
parent a5d538b389
commit ab92252ee6
2 changed files with 2 additions and 0 deletions

View file

@ -47,6 +47,7 @@ void IRCAppWindow::setup_widgets()
widget->set_layout(make<GBoxLayout>(Orientation::Horizontal)); widget->set_layout(make<GBoxLayout>(Orientation::Horizontal));
auto* subwindow_list = new GTableView(widget); auto* subwindow_list = new GTableView(widget);
subwindow_list->set_headers_visible(false);
subwindow_list->set_model(OwnPtr<IRCClientWindowListModel>(m_client.client_window_list_model())); subwindow_list->set_model(OwnPtr<IRCClientWindowListModel>(m_client.client_window_list_model()));
subwindow_list->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill); subwindow_list->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
subwindow_list->set_preferred_size({ 120, 0 }); subwindow_list->set_preferred_size({ 120, 0 });

View file

@ -13,6 +13,7 @@ IRCClientWindow::IRCClientWindow(IRCClient& client, Type type, const String& nam
{ {
set_layout(make<GBoxLayout>(Orientation::Vertical)); set_layout(make<GBoxLayout>(Orientation::Vertical));
m_table_view = new GTableView(this); m_table_view = new GTableView(this);
m_table_view->set_headers_visible(false);
m_table_view->set_font(Font::default_fixed_width_font()); m_table_view->set_font(Font::default_fixed_width_font());
m_client.register_subwindow(*this); m_client.register_subwindow(*this);