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
Notes: sideshowbarker 2024-07-19 12:15:38 +09:00
4 changed files with 25 additions and 2 deletions
Libraries/LibGUI

View file

@ -15,6 +15,8 @@ GTableView::GTableView(GWidget* parent)
set_frame_shape(FrameShape::Container);
set_frame_shadow(FrameShadow::Sunken);
set_frame_thickness(2);
set_should_hide_unnecessary_scrollbars(true);
}
GTableView::~GTableView()