1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibGUI: Make GUI::Toolbar::add_action() return the toolbar button

Previously there was no easy way for clients to access the button.
This commit is contained in:
Andreas Kling 2021-05-15 22:23:13 +02:00
parent a6ec024352
commit 5daf7bd2ef
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class Toolbar : public Widget {
public:
virtual ~Toolbar() override;
void add_action(Action&);
GUI::Button& add_action(GUI::Action&);
void add_separator();
bool has_frame() const { return m_has_frame; }