mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +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:
parent
d17a91f185
commit
951377e93e
5 changed files with 41 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue