mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +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
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