mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
LibGUI: Add TabWidget::set_tab_title(Widget&, StringView)
This lets you change the title of a tab after creating it.
This commit is contained in:
parent
933cf365e8
commit
ee7e7e6d55
2 changed files with 17 additions and 1 deletions
|
@ -65,7 +65,9 @@ public:
|
|||
|
||||
void remove_tab(Widget& tab) { remove_widget(tab); }
|
||||
|
||||
Function<void(const Widget&)> on_change;
|
||||
void set_tab_title(Widget& tab, const StringView& title);
|
||||
|
||||
Function<void(Widget&)> on_change;
|
||||
|
||||
protected:
|
||||
TabWidget();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue