1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

GTableView: Add ability to hide individual columns at view-level.

Use this in IRCClient to hide the "sender" column in the server message view
since everything in that view comes from the "Server" anyway.
This commit is contained in:
Andreas Kling 2019-03-20 13:35:11 +01:00
parent d17a91f185
commit 951377e93e
5 changed files with 41 additions and 3 deletions

View file

@ -26,6 +26,10 @@ IRCWindow::IRCWindow(IRCClient& client, void* owner, Type type, const String& na
m_table_view->set_font(Font::default_fixed_width_font());
m_table_view->set_alternating_row_colors(false);
if (m_type == Server) {
m_table_view->set_column_hidden(IRCLogBufferModel::Column::Name, true);
}
if (m_type == Channel) {
auto* member_view = new GTableView(container);
member_view->set_headers_visible(false);