1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

GTableView: Add a way to turn off alternating row colors.

This commit is contained in:
Andreas Kling 2019-03-15 21:41:27 +01:00
parent 491aa112ab
commit b54ab06595
5 changed files with 15 additions and 7 deletions

View file

@ -49,6 +49,7 @@ void IRCAppWindow::setup_widgets()
auto* window_list = new GTableView(widget);
window_list->set_headers_visible(false);
window_list->set_alternating_row_colors(false);
window_list->set_model(OwnPtr<IRCClientWindowListModel>(m_client.client_window_list_model()));
window_list->set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
window_list->set_preferred_size({ 120, 0 });