1
Fork 0
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:
Andreas Kling 2021-11-24 22:23:59 +01:00
parent a18631c5e7
commit e623e73f63
2 changed files with 15 additions and 4 deletions

View file

@ -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();