1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGUI: Allow TabWidget to remove all tabs except one

This commit is contained in:
TheFightingCatfish 2021-08-06 10:01:32 +08:00 committed by Andreas Kling
parent ca2c81251a
commit 8a0d465fbc
2 changed files with 17 additions and 0 deletions

View file

@ -48,6 +48,7 @@ public:
}
void remove_tab(Widget& tab) { remove_widget(tab); }
void remove_all_tabs_except(Widget& tab);
void set_tab_title(Widget& tab, const StringView& title);
void set_tab_icon(Widget& tab, const Gfx::Bitmap*);