mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibGUI: Add GUI::Toolbar::try_add_separator()
This is a fallible variant of add_separator() that returns ErrorOr.
This commit is contained in:
parent
a18631c5e7
commit
e623e73f63
Notes:
sideshowbarker
2024-07-18 00:41:45 +09:00
Author: https://github.com/awesomekling
Commit: e623e73f63
2 changed files with 15 additions and 4 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
virtual ~Toolbar() override;
|
||||
|
||||
ErrorOr<NonnullRefPtr<GUI::Button>> try_add_action(GUI::Action&);
|
||||
ErrorOr<void> try_add_separator();
|
||||
|
||||
GUI::Button& add_action(GUI::Action&);
|
||||
void add_separator();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue