mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:17:34 +00:00
LibGUI: Support drag-to-reorder in TabWidget
This commit is contained in:
parent
df674023d6
commit
e1684860a3
3 changed files with 99 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue