1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 09:17:45 +00:00

LibGUI: Support drag-to-reorder in TabWidget

This commit is contained in:
Peter Elliott 2021-10-07 01:52:04 -06:00 committed by Andreas Kling
parent df674023d6
commit e1684860a3
3 changed files with 99 additions and 3 deletions

View file

@ -34,6 +34,7 @@ GalleryWidget::GalleryWidget()
load_from_gml(window_gml);
auto& tab_widget = *find_descendant_of_type_named<GUI::TabWidget>("tab_widget");
tab_widget.set_reorder_allowed(true);
auto& basics_tab = tab_widget.add_tab<GUI::Widget>("Basics");
basics_tab.load_from_gml(basics_tab_gml);