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

LibGUI: Teach GScrollableWidget how to hide unnecessary scrollbars

This is now an opt-in mode enabled by calling:

    should_hide_unnecessary_scrollbars(true)

This patch enables the mode for GTreeView and GTableView. :^)
This commit is contained in:
Andreas Kling 2019-09-05 21:37:15 +02:00
parent fb39e46d3d
commit 7a906ab539
4 changed files with 25 additions and 2 deletions

View file

@ -29,6 +29,8 @@ GTreeView::GTreeView(GWidget* parent)
m_expand_bitmap = GraphicsBitmap::load_from_file("/res/icons/treeview-expand.png");
m_collapse_bitmap = GraphicsBitmap::load_from_file("/res/icons/treeview-collapse.png");
set_should_hide_unnecessary_scrollbars(true);
}
GTreeView::~GTreeView()